html {
	margin: 0px;
	padding: 0px;
}

body {
	background-color: #fbfbfb;
	font-family: 'Niramit', sans-serif;
	font-weight: 200;
	margin: 0px;
	padding: 0px;
}

p {}

.error {
	color: red;
}



h2 a {
	margin-left: 10px;
	margin-right: 10px;
}

h2 a.firstRight {
	margin-left: 20px;
	margin-right: 10px;
}

h2 a.back {
	margin-left: 30px;
	margin-right: 30px;
}

h4 { color: green; text-align: center; }

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

h1,h2,h3,h4,h5,img {
	text-align: center;
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

input, textarea, select {	
	font-family: 'Niramit', sans-serif;
	padding: 10px;
	border: none;
	font-size: 16px;
}

input[type="date"] {
	padding: 8px;
}

input[type="submit"],button {
	border-radius: 5px;
	border: none;
	color: #ffffff;
	cursor: pointer;
}

.alert-danger{
	color: red;
	margin-top: 5px;
}

button {
	padding: 15px;
}

.my-button{
	padding: 10px;
}

.my-button a{
	color: #fff;
	font-size: 16px;

}

.back{
    border-radius: 5px;
    border: none;
    cursor: pointer;
	font-family: 'Niramit', sans-serif;
    padding: 10px;
    /* border: none; */
    font-size: 16px;
}

.back a{
	color: #ffffff;

}


header {
	width: 100%;
	height: 74px;
	position: fixed;
	background-color: #fbfbfb;
	margin-bottom: 50px;
	z-index: 99;
	padding: 10px;
}

header a.button {
	float: right;
	margin: 30px 10px 0px 20px;
}

header a.last {
	margin-right: 50px;
}

header #todoBox {
	width: 450px;
	background-color: #ffffff;
	position: absolute;
	left: 50%;
	margin-left: -225px;
	top: 50px;
	display: none;
	font-size: 11px;
	padding: 8px;
}

.todosForm {}

.todosForm input {
	font-size: 11px;
}

/* Nav */

nav {
	display: none;
	position: fixed;
	right: 0px;
	width: 20%;
	height: 100%;
	z-index: 2;
}

nav i {
	color: #ffffff;
	margin-right: 10px;
	width: 20px;
}

nav ul {
	margin-top: 160px;
	list-style-type: none;
	font-size: 18px;
}

nav ul li {
	margin-bottom: 20px;
}

nav ul li a {
	color: #ffffff;
}

@media only screen and (max-width: 1200px) {
	nav {
		width: 30%;
	}
}

@media only screen and (max-width: 900px) {
	nav {
		width: 50%;
	}
}

@media only screen and (max-width: 480px) {
	nav {
		width: 100%;
	}
}

/* ********** */

.content {
	width: 96%;
	top: 124px;
	position: absolute;
	z-index: 1;
	text-align: center;
	margin-left: 2%;
	margin-right: 2%;
}

.listing {
	min-width: 100%;
	position:relative;
	overflow: scroll;
	margin-bottom: 30px;
	table-layout: fixed;
}

.listing .subListing {
	display: none;
	margin-left: 30px;
}

.listing .subListing p a.tenants {
	text-decoration: underline;
}

.listing .fa-minus {
	display: none;
}

.listing i {
	text-decoration: none;
}

.listing th {
	text-align: left;
	margin-bottom: 10px;
	border-bottom: solid 1px;
}

.listing .alert td {
	border: solid 2px yellow;
}

.listing td {
	padding: 6px;
	font-size: 13px;
	text-align: left;
	vertical-align: top;
}

.listing td  a {
	text-decoration: none;
}

 .subListing td a {
	text-decoration: underline;
}

.listing td.button {
	width: 30px;
	text-align: center;
}

.subListing .archiveUnit span {
	font-variant: small-caps;
}

.subListing .archiveUnit ul {
	list-style-type: square;
}

.listing .subListing .archiveUnit a.tenants {
    text-decoration: underline;
    font-size: 11px;
}

.archiveUnit .rotated { 
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

ul.contractsArchive, ul.worksArchive {
	display: none;
}

.nameFilter {
	 width: 260px;
}

select#contracts {
	margin-right: 30px;
}

table.bailments {
	display: none;
}

.rotate { 
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -o-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

/* Single object view */

.insertData {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start
	align-items: flex-start;
	align-content: flex-start;
}

.insertData h3 {
	width: 100%;
}

.insertData p {
	margin-right: 20px;
	float: left;
}

.insertData textarea {
	width: 100%;
	height: 200px;
}

.insertData button {
	float: right;
	padding: 15px 20px;	
}

.flex-col {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
}

#addPayment {
	display: none;
}

.accounting {
	width: 100%;
	text-align: left;
}

.accounting td {
	padding: 5px;
}

.accounting .date {
	width: 150px;
	font-weight: 600;
}

.accounting .amount {
	width: 300px;
}

.accounting .dare {
	background-color: #c8e5cf;
}

.accounting .avere {
	background-color: #e8d1d1;
}

.accounting .subtotal {
	background-color: #999999;
	color: #ffffff;
}

.accounting .total {
	background-color: #333333;
	color: #ffffff;
}

h3.editBuilding {
	text-align: left;
}

h4.editBuilding {
	text-align: left;
	color: #333333;
	text-align: left;
	font-weight: 400;
}

p.editBuilding {
	text-align: left;
	font-size: 12px;
	font-weight: 600;
	line-height: 13px;
}

p.editBuilding.notes {
	font-weight: 400;
}

form.editBuilding {
	text-align: right;
}

form.editBuilding input, form.editBuilding select {
	font-size: 14px;
	padding: 3px;
}

form.editBuilding input[type="text"], form.editBuilding input[type="submit"], form.editBuilding select {
	padding: 5px;
}

/* Mail view */

.mailEditor {
	width: 50%;
	position: relative;
	left: 25%;
}

.mailEditor input {
	width: 97.3%;
	margin-bottom: 20px;
}

.mailEditor select {
	width: 100%;
	margin-bottom: 20px;
}

.mailEditor textarea {
	height: 250px;
}

.mailEditor input[type="submit"] {
	width: 100%;
	margin-top: 20px;
}

.deleteButton {
	font-size: 12px;
}

/* Login view */

#login input[type="submit"] {
	width: 20%;
}

#passwordRecovery {
	display: none;
}

#passwordRecovery input {
	width: 66%;
}

#passwordRecovery input[type="submit"] {
	width: 30%;
}

#loginFailed {
	text-align: center;
}

.toolbar {
	width: 100%;
}

.toolbar a {
	float: right;
	margin: 10px;
}

@media only screen and (max-width: 630px) {
	
    #login input, #passwordRecovery input {
		display: block;
		margin-bottom: 20px; 
		width: 92%;
	}
	
	#login input[type="submit"], #passwordRecovery input[type="submit"] { 
		width: 96%;
	}
}

/* ********** */

/* Manual invoice view */

#voce2, #voce3, #voce4, #voce5 {
	display: none;
}

/* ******************* */

/* Profile view */

#profile input {
	width: 60%;
	margin-bottom: 20px;
}

#profile select {
	width: 63%;
	margin-bottom: 20px;
}

#profile input[type="submit"] {
	width: 30%;
}

@media only screen and (max-width: 630px) {
	
    #profile input {
		width: 92%;
	}
	
	#profile select {
		width: 96%;
	}
	
	#profile input[type="submit"] { 
		width: 96%;
	}
}

/* ********* */

aside {}

footer {}


/* Printing rules */

@media print {
	@page {
    	size: auto;   /* auto is the initial value */
    	margin: 0;  /* this affects the margin in the printer settings */
	}
	header .button, header #todo {
		display: none;
	}
	.content h2 a {
		display: none;
	}	
	.noPrint {
		display: none;
	}
	.accounting tr td {
		width: 21%;
		font-size: 10px !important;
	}
	.accounting tr td.columnDate {
		width: 6%;
	}
	.contracts td {
		border-bottom: solid 1px #dddddd;
	}
}


:root {
  --main-color: #3B3B3B; 
}

body {
	color: var(--main-color);
}

a {
	color: var(--main-color);
}

input[type="submit"], button {
	background-color: var(--main-color);
}

input, select, textarea {
	border: solid 1px #273F4E;
}

header {
	background-color: #ffffff;
	border-bottom: solid 2px #E48432;
}

header .logo {
	height: 60px;
}

@media only screen and (max-width: 1000px) {
	header .logo {
		width: 60vw;
		height: auto;
		margin-top: 20px;
	}
}

header i {
	color: var(--main-color);
}

nav {
	background-color: var(--main-color);
}

.listing th {
	text-align: left;
	border-color: var(--main-color);
}

.listing tr:nth-child(even){
	background-color: #E2EAF0;
}

.memberTab a {
	background-color: var(--main-color);
}

.memberTab a.active {
	border: solid 2px #9E181C;
}

header #todoBox {
	border: solid 2px var(--main-color);
}

.socialSecurityCalc {
	position: relative;
    bottom: -5px;
}

#loader {
 	position: fixed;
 	top: 200px;
 	left: 50%;
 	margin-left: -40px;
    border: 16px solid #3B3B3B;
    border-top: 16px solid #555555;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
    z-index: 99;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.warning {
	position: absolute;
	left: 50%;
	margin-left: -180px;
	top: 50px;
	background-color: #3B3B3B;
	width: 360px;
	display: none;
	border: solid 2px #E48432;
	padding: 16px;
}

.warning p {
	color: #ffffff;
}

.warning a {
	background-color: #ffffff;
	padding: 12px;
	border-radius: 5px;
	margin: 16px;
}

.invoices-counter {
	width: 340px;
	height: 180px;
	position: absolute;
	top: -30px;
	left: 0px;
	font-size: 12px;
}

.invoices-counter table td {
	text-align: right;
	border-bottom: solid 0.5px #000000;
	padding-right: 12px;
}

.invoices-counter table td:first-child {
	text-align: left;
	padding-right: 32px;
}
