@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,700,600italic,700italic,800&subset=latin,cyrillic);

@import url(https://fonts.googleapis.com/css?family=Roboto:400,100,300,300italic,400italic,500,500italic,700,700italic,900&subset=latin,cyrillic);

html,
body {
	height: 100%;
}

body {
	font-family: "Roboto", Arial, sans-serif;
	background: #F9F9F9;
}

a, a:link, a:visited {
    color: #998b6d;
    text-decoration: none;
}

a.btn.btn-link:active,
a:active,
a.btn.btn-link:focus,
a:focus,
a.btn.btn-link:hover,
a:hover {
	color: #893a43;
}


a,
input[type=button],
button {
	outline: 0 none !important;
}

img {
	max-width: 100%;
}

.min-full-height {

	min-height: 100vh;

}

.nowrap {
	white-space: nowrap;
}

.validation-errors {

}

.validation-errors-list {
	padding: 0;
	margin: 0;
	list-style: none;
}

* > .form-group:last-child {
	margin-bottom: 0;
}

.outline {
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	height: 100%;
}

#nav {
	align-self: flex-start;
	width: 100%;
}

#content {
	width: 100%;

	-webkit-flex-grow: 1;
	    -ms-flex-positive: 1;
	        flex-grow: 1;
}


[data-page="login"] #content {
	align-self: center;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
}

#content > *:first-child {
	width: 100%;
	align-self: center;
}

.navbar-default {
	border-radius: 0;
	background: #FFF;
	border-bottom: 0 none;
	box-shadow: 0 0 2px rgba(0, 0, 0, .2);
}

.panel {
	border-radius: 0;
	border: 0 none;
	box-shadow: none;
	/*box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);*/
}

.panel-default > .panel-heading {
	border: 0 none;
	background: #e0dbd0;
	color: #333;
	text-transform: uppercase;
	font-weight: 300;
	border-radius: 0;
	font-size: 1.2em;
	border: 1px solid rgba(0, 0, 0, .04);
	border-bottom-color: rgba(0, 0, 0, .04);
}

a.btn,
button.btn {
	border-radius: 3px;
	 background: #893a43 none repeat scroll 0 0;
    border: 0 none;
    color: #ffffff;
    font-weight: bold;
    min-width: 100px;
    padding-bottom: 10px;
    padding-top: 10px;
    text-transform: uppercase;
    transition: background 0.25s ease 0s;
}

.bold {
	font-weight: bold;
}

a.btn.btn-primary:active,
a.btn.btn-primary:hover,
a.btn.btn-primary:focus,
button.btn.btn-primary:active,
button.btn.btn-primary:hover,
button.btn.btn-primary:focus,
button.btn:active,
button.btn:hover,
button.btn:focus {
	background: #202021 none repeat scroll 0 0;
    color: #c4b189;
}

a.btn.btn-default, 
button.btn.btn-default {
	background-color: #e6e6e6;
	color: #333;

	box-shadow: none !important;
}

a.btn.btn-default:hover {
	background: #CCC;
}

a.btn.btn-link {
	background: none;
	color: #998b6d;
}

button.btn.btn-2x,
a.btn.btn-2x {
	font-size: 17px;
	font-weight: normal;
	padding: 12px 30px;
}

.form-control {
	border-radius: 0;
	box-shadow: none;
	/*box-shadow: 0 0 4px rgba(153, 139, 109, 0);*/

}

.form-control:hover,
.form-control:focus {
    border-color: #999;
    box-shadow: 0 0 4px rgba(153, 139, 109, 0.3);
    outline: 0 none;
}

.input-shrink {
	display: table;
	width: auto;
	margin-left: 0;
	margin-right: 0;
	width: calc(100% + 30px);
	margin-left: -15px;
}

.input-shrink > .form-group {
	display: table-row;
}

.input-shrink > .form-group > * {
	display: table-cell;
	float: none !important;
	vertical-align: middle;
}

.input-shrink > .form-group + .form-group > * {
	padding-top: 15px;
}

.input-shrink > .form-group > *:last-child {
	width: 100%;
}

.input-shrink > .form-group > .control-label {
	text-align: left;
	font-weight: normal;
}

.form-horizontal.input-shrink .control-label {
	padding-top: 7px;
}

.form-horizontal.input-shrink .form-group + .form-group > .control-label {
	padding-top: 15px;
}

.alert {
	border-radius: 0;
}

.checkbox-label input[type=checkbox] {
	display: none;
}

.checkbox-label {
	position: relative;
	padding-left: 34px;
	padding-top: 2px;
	font-weight: normal;
	cursor: pointer;
}

.checkbox-label[disabled] {
	cursor: not-allowed;
}

.checkbox-label .checkbox-input {
	display: inline-block;
	width: 24px;
	height: 24px;
	position: absolute;
	left: 0;
	top: 0;
	  background-color: #ffffff;
    background-image: none;
    border: 1px solid #cccccc;

    color: #555555;
    display: block;
    font-size: 14px;
    text-align: center;
    line-height: 1.42857;
    transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
}

.checkbox-label input[type=checkbox][disabled] ~ .checkbox-input {
	background: #eeeeee;
}

.checkbox-label:hover .checkbox-input,
.checkbox-label:focus .checkbox-input {
	border-color: #999;
    /*box-shadow: 0 0 4px rgba(153, 139, 109, 0.3);*/
    outline: 0 none;
}

.checkbox-label .checkbox-input:after {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	line-height: 22px;
	width: 22px;
	text-align: center;
	display: inline-block;
	font-family: "Glyphicons Halflings";
	font-style: normal;
	font-weight: 400;
	position: relative;
	font-size: 12px;
	content:"\e013";

	opacity: 0;
	visibility: hidden;
	transform: scale(0, 0);

	transition: transform .15s,
				opacity .15s,
				visibility .15s;
}

.checkbox-label input[type=checkbox]:checked ~ .checkbox-input:after {
	visibility: visible;
	transform: scale(1, 1);
	opacity: 1;

	transition: transform .15s,
				opacity .15s,
				visibility 0s;
}

.panel-body {
	border: 1px solid #EEE;
}

.panel-heading + .panel-body {
	border-top: 0 none;
}

.panel-body.panel-actions {
	/*background: #F9F9F9;*/
	border-left: 1px solid #EEE;
	border-right: 1px solid #EEE;
	border-bottom:  0 none;
	background: #F9F9F9;
	padding-left: 12px;
	padding-right: 12px;
}

.panel-body.panel-footer {
	background: #F9F9F9;
	/*border-top: 1px solid #EEE;*/
	border-top: 0 none;
}


.max-container {
	max-width: 1024px;
}

.panel-properties {
	padding: 0;
}

.properties {
	width: 100%;
	border-spacing: 0;
	border-collapse: collapse;
	border: 1px solid #EEE;
}

.no-border {
	border: 0 none;
}

.properties thead td {
	padding: 12px;
	background: #FFF;
	color: #333;
	border: 1px solid #EEE;
	border-bottom-width: 2px;
	font-weight: bold;
}

.properties tfoot td,
.properties tbody td {
	padding: 12px;
	border: 1px solid #EEE;
}

.properties tbody > tr:nth-child(even) td {
	background: #F9F9F9;
}

.properties tbody tr + tr td {
	border-top: 1px solid rgba(0, 0, 0, .05);
}

.properties tbody > tr:hover td {
	background: #F7F7F7;
}

.dropdown-menu {
	border-radius: 0;
}

.properties .btn.dropdown-toggle {
	min-width: 0;
	transition: none;
}

.panel-footer .pagination {
	margin-top: 7px;
	margin-bottom: 7px;
}

.pagination li span,
.pagination li a {
	
	border-radius: 0 !important;

}

.pagination > li > a,
.pagination > li > span {
	color: #998b6d;
}

.pagination > li.active > a,
.pagination > li.active > span {
	background: #893a43 !important;
	border-color: #893a43 !important;
	color: #FFF;
}

.table-label {
	display: none;
}

.mobile-width-shrinker {
	display: none;
}

div.mobile-shrinker-break {
	display: none;
}

*.hidden[class] {
	display: none !important;
}

.datepicker-mobile-fix {
	display: none;
}

.form-group {
	position: relative;
}

.money {
	white-space: nowrap;
}

td.actions a {
	font-size: 11px;
	text-transform: uppercase;
	border: 1px solid #893a43;
	padding: 5px 7px;
	background: #893a43;
	color: #FFF;
	border-radius: 3px;

	transition: background .25s,
				color .25s;
}

td.actions a:hover {
	background: #202021;
    color: #c4b189;
}

.show-on-mobile-only {
	display: none;
}

.status {
	display: block;
	text-align: center;
	font-weight: bold;
	font-size: 11px;
	text-transform: uppercase;
	padding: 5px 7px;
	background: #FFF;
	border-radius: 3px;
}

.status-active,
.status-paid {
	background: #2ecc71;
	color: #FFF;
	border: 1px solid #2ecc71;
	transition: background .25s;
}

.status-active,
.status-refunded {
	background: #c74724;
	color: #FFF;
	border: 1px solid #c74724;
	transition: background .25s;
}

.status-inactive,
.status-unpaid {
	background: #e74c3c;
	color: #FFF;
	border: 1px solid #e74c3c;
}

a .status-paid:hover {
	background: #27ae60;
}

.status-canceled {
	background: #95a5a6;
	border: 1px solid #95a5a6;
	color: #FFF;
}

/*.payment-receipt-input > * {
	padding-top: 40px !important;
}*/

.file-input input {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	opacity: 0 !important;
}

.file-input {
	position: relative;
}

.file-input-name {
	padding: 6px 12px;
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	max-width: calc(100% - 140px);

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.file-input label {
	font-weight: normal;
}

.file-input-btn {
	position: absolute;
	right: -1px;
	top: -1px;
	bottom: -1px;
	padding: 7px 12px;
	background: #893a43;
	color: #FFF;
	cursor: pointer;
	font-weight: normal;
}

.file-input-btn:hover {
	background: #202021 none repeat scroll 0 0;
    color: #c4b189;
}

span.sort {
	width: 11px;
	height: 10px;
	vertical-align: middle;
	/*background: blue;*/
	display: inline-block;
	position: relative;
}

span.sort:before {
	content: "";
	width: 0; 
	height: 0; 
	border-left: 3px solid transparent; 
	border-right: 3px solid transparent; 
	border-bottom: 4px solid currentColor;
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	margin: auto;
}

span.sort:after {
	content: "";
	width: 0; 
	height: 0; 
	border-left: 3px solid transparent; 
	border-right: 3px solid transparent; 
	border-top: 4px solid currentColor;
	position: absolute;
	left: 0;
	bottom: 0;
	right: 0;
	margin: auto;
}

span.sort.asc:after {
	display: none;
}

span.sort.asc:before {
	top: 0;
	bottom: 0;
}

span.sort.desc:before {
	display: none;
}

span.sort.desc:after {
	top: 0;
	bottom: 0;
}

a.sortable {
	position: absolute;
	left: -1px;
	right: 0;
	top: -1px;
	bottom: -30px;
	z-index: 1;

	transition: background .25s;
}

a.sortable:hover {
	background: rgba(0, 0, 0, .05);
}

.properties thead td {
	background-clip: padding-box;
	position: relative;
	overflow: hidden;
}


#nav .dropdown-menu {
	min-width: 100%;
	border: 0 none;
}

.filters table {
	width: 100%;
	border-spacing: 0;
	border-collapse: collapse;
}

.filters label {
	padding: 0;
	margin: 0;
	font-weight: normal;
}

.filters table td + td {
	padding-left: 12px;
}

.filters table tr + tr td {
	padding-top: 10px;
}

.filters {
	background: #FCFCFC !important;
	padding-left: 12px;
	padding-right: 12px;
}


select:focus::-ms-value {
	background: inherit !important;
	color: inherit !important;
}

.payments-client-table tr > td.text-right.actions a {
	display: block;
	text-align: center;
}

.payments-client-table tr > td.text-right.actions a.btn-default {
	background: #e6e6e6;
    box-shadow: none !important;
    color: #333333;
    border: 1px solid #e6e6e6;

    transition: border .25s,
    			background .25s;
}

.payments-client-table tr > td.text-right.actions a.btn-default:hover {
	background: #CCC;
    border: 1px solid #CCC;
}


.alert a {
	/*color: #000;*/
	font-weight: bold;
	color: rgba(0, 0, 0, 0.6);
}

.alert a:hover {
	color: rgba(0, 0, 0, 0.8);
}

.payments-pay tbody td {
	background: #FFF !important;
}

.pay-actions button,
.pay-actions a {
	display: inline-block;
	margin: 5px;
}

#footer {
	align-self: flex-end;
	background: #FFF;
	width: 100%;
	box-shadow: 0 0 2px rgba(0, 0, 0, .2);
	/*padding: 15px 0;*/
}

#footer .container {
	padding-top: 15px;
	padding-bottom: 15px;
}

#nav,
#content,
#footer {
	flex-shrink: 0;
}

#footer .footer-info ul {
	padding: 0;
	margin: 0;
	letter-spacing: normal;
	padding-top: 4px;
}

#footer .footer-info ul li {
	display: inline-block;
	margin-right: -4px;
}

#footer .footer-info ul li + li {
	padding-left: 7px;
	margin-left: 7px;
	border-left: 1px solid #DDD;
}

#footer .container {
	width: 100% !important;
}

.panel-footer {
	border-radius: 0 !important;
}

.nav-username {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 150px;
	display: inline-block;
	vertical-align: top;
}


@media screen and (max-width: 900px) {

	#footer .footer-cards {
		width: 100%;
		text-align: center;
		margin-bottom: 10px;
	}

	#footer .footer-info {
		width: 100%;
		text-align: center;
	}

	.payments-client-table tr > td.text-right.actions a {
		padding: 10px;
	}

	.status {
		display: inline-block;
	}

	a.sortable:hover {
		background: transparent;
	}


	.file-col {
		text-align: left;
		padding-top: 7px !important;
		padding-bottom: 7px !important;
	}

	.file-col .table-label a {
		margin-top: 3px !important;
		margin-bottom: 3px !important;
	}

	.properties[data-toggle] tr.visible  td.hide-col {
		display: none !important;
	}

	.file-col > a {
		display: none !important;
	}


	.datepicker-mobile-fix {
		display: block;
		position: absolute;
		left: 0;
		top: 15px;
		bottom: 0;
		right: 0;
		/*background: blue;*/
		z-index: 2;
	}

	div.mobile-shrinker-break {
		display: block;
		padding: 0;
		margin: 0;
		height: 0;
		overflow: hidden;
		line-height: 0;
	}

	.mobile-width-shrinker {
		font-weight: bold;
		height: 1px;
		overflow: hidden;
		/*opacity: 0;*/
		background: green;
		display: inline-block;
		position: relative;
		float: left;
		margin-top: -20px;
		z-index: -1;
	}
	
	.table-label {
		display: inline-block;
		font-weight: bold;
		margin-right: 5px;
	}

	.show-on-mobile-only {
		display: inline-block;
		margin-left: 8px;
		font-weight: bold;
	}

	.properties[data-toggle] thead,
	.properties[data-toggle] tbody,
	.properties[data-toggle] td,
	.properties[data-toggle] tr,
	.properties[data-toggle] {
		display: block;
	}

	.properties[data-toggle] tr > td:first-child {
		padding-right: 7px;
	}

	.properties[data-toggle] tr > td:first-child + td {
		padding-left: 8px;
	}

	.properties[data-toggle] thead {
		/*background: #333;*/
	}

	.properties[data-toggle] tr td {
		border: 0 none;
	}

	.properties[data-toggle] thead {
		border-bottom: 1px solid #EEE;
	}

	.properties[data-toggle] tr td + td {
		border-left: 1px solid #EEE;
	}

	.properties[data-toggle] tbody > tr:nth-child(even) td {
		background: #FFF;
	} 

	.properties tbody > tr:hover td {
		background: none;
	}

	.properties td.table-toggler ~ td,
	.properties td.table-toggler {
		border-left: 0 none !important;
	}

	.properties[data-toggle] td {
		float: left;
	}

	.properties[data-toggle] tr > td:first-child + td {
		white-space: nowrap;
		max-width: calc(100% - 80px);
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.payments-table.properties[data-toggle] tr > td:first-child + td {
		max-width: calc(100% - 150px);
	}

	.payments-client-table.properties[data-toggle] tr > td:first-child + td {
		max-width: calc(100% - 180px);
	}

	.properties[data-toggle] tr:after {
		clear: both;
		display: block;
		content: "";
	}

	.properties tbody tr + tr {
		border-top: 1px solid rgba(0, 0, 0, .05);
	}

	.properties .thead-toggler ~ td,
	.properties .thead-toggler {
		display: none !important;
	}

	.properties .table-toggler ~ td,
	.properties .table-toggler {
		display: none !important;
	}


	.properties tr.visible .table-toggler ~ td,
	.properties tr.visible .table-toggler {
		display: block !important;
		float: none !important;
		clear: both;
		width: 100%;
		padding-top: 10px;
		padding-bottom: 10px;
		background: #F8F8F8 !important;
	}

	.properties tr.visible > td.table-toggler {
		padding-top: 15px;
		position: relative;
	}

	.properties tr.visible > td.table-toggler:before {
		content: "";
		width: 0; 
		height: 0; 
		border-left: 7px solid transparent; 
		border-right: 7px solid transparent; 
		border-bottom: 7px solid #F8F8F8;
		position: absolute;
		right: 13px;
		top: -7px;
		margin: auto;
	}

	.properties tr.visible > td:last-child {
		padding-bottom: 15px;
	}
	
	.properties tr.visible td.empty {
		display: none !important;
	}

	.properties tr.visible > td.empty:last-child {
		padding-top: 0;
		padding-bottom: 5px;
		display: block !important;
	}

	

	.properties tr {
		position: relative;
	}

	.properties tbody tr > td:first-child + td:after {
		content: "";
		position: absolute;
		right: 15px;
		top: 22px;
		width: 0;
		height: 0;
		border-left: 5px solid transparent; 
		border-right: 5px solid transparent; 
		border-top: 7px solid #CCC;
	}

	.properties tbody tr.visible > td:first-child + td:after {
	}

	.properties .text-right {
		text-align: left;
	}

	.actions a {
		text-align: center;
		padding: 10px;
		transition: background 0.25s ease 0s;
		display: inline-block;
	}

	
	.properties-collapse td {
		display: block !important;
		border-left: 0 none !important;
		border-right: 0 none !important;
		border-bottom: 0 none !important;
	}

	.properties-collapse tbody tr > td:first-child {
		border-top: 0 none !important;
	}

	.properties-collapse thead {
		display: none !important;
	}

	.properties.properties-collapse tbody tr > td:first-child + td:after {
		display: none;
	}

}

@media screen and (max-width: 800px) {
	
	.panel-body.filters form > table > tbody,
	.panel-body.filters form > table > tbody > tr,
	.panel-body.filters form > table > tbody > tr > td,
	.panel-body.filters form > table {
		display: block;
	}	

	.panel-body.filters form > table > tbody > tr > td {
		padding: 0;
		width: 100% !important;
	}
	
	.panel-body.filters form > table > tbody > tr > td + td {
		padding-top: 10px;
	}

	.panel-body.filters .text-right {
		text-align: left;
		padding-left: 0 !important;
	}

	.panel-actions .right {
		float: none;
		text-align: left;
		padding-top: 10px;
		margin-top: 10px;
		border-top: 1px solid #EEE;
	}

}

@media screen and (max-width: 640px) {

	#footer .footer-info ul li {
		border: 0 none !important;
		margin: 0 !important;
		padding: 0 !important;
		display: block;
	}

	#footer .footer-info ul li + li {
		margin-top: 5px !important;
	}

	.a-lot-of-pages ul.pagination > li:nth-child(n+4) {
		display: none;
	}
	
	.a-lot-of-pages ul.pagination > li:nth-last-child(4) ~ li,
	.a-lot-of-pages ul.pagination > li.disabled {
		display: inline;
	}

}

@media screen and (max-width: 420px) {
	
	.login-forgotten {
		display: block;
		margin-top: 10px;
	}

	.login-forgotten a {
		padding-left: 0;
		padding-right: 0;
	}

}

@media screen and (max-width: 400px) {
	
/*	.properties {
		width: 100%;
		border-spacing: 0;
		border-collapse: collapse;
	}

	.properties thead td {
		padding: 15px;
		background: #333;
		color: #FFF;
	}

	.properties tbody td {
		padding: 15px;
	}

	.properties tbody tr + tr td {
		border-top: 1px solid rgba(0, 0, 0, .05);
	}

	.properties tbody > tr:hover td {
		background: #F9F9F9;
	}
	*/

	.input-shrink {
		display: block;
		width: auto;
		margin-left: -15px;
		margin-right: -15px;
	}

	.input-shrink > .form-group {
		display: block;
		padding-left: 15px;
		padding-right: 15px;
	}

	.input-shrink > .form-group > * {
		display: block;
	}

	.input-shrink > .form-group + .form-group > * {
		padding-top: 0;
	}

	
	.form-horizontal.input-shrink .control-label {
		padding-top: 0;
	}

	.form-horizontal.input-shrink .form-group + .form-group > .control-label {
		padding-top: 0;
	}

	.datepicker-mobile-fix {
		top: 0;
	}
	
}

/*Bootrstrap nav bar breakpoint*/
@media (max-width: 960px) {

	.nav-username {
		max-width: 100%;
		max-width: calc(100% - 30px);
	}

	.navbar-header {
		float: none;
		margin-left: -15px !important;
		margin-right: -15px !important;
	}

	.navbar-brand {
		margin-left: 0 !important;
	}

	.navbar-left,.navbar-right {
		float: none !important;
	}

	.navbar-toggle {
		display: block;
	}

	.navbar-collapse {
		border-top: 1px solid transparent;
		box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
		margin-left: -15px !important;
		margin-right: -15px !important;
	}

	.navbar-fixed-top {
		top: 0;
		border-width: 0 0 1px;
	}

	.navbar-collapse.collapse {
		display: none!important;
	}

	.navbar-nav {
		float: none!important;
		margin-top: 7.5px;
		margin-bottom: 7.5px;
		margin-left: -15px !important;
		margin-right: -15px !important;
	}

	.navbar-nav > li {
		float: none;
	}

	.navbar-nav > li > a {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.collapse.in {
		display:block !important;
	}

}