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 {
	text-transform: uppercase;
}

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="submit"],button {
	border-radius: 5px;
	border: none;
	color: #ffffff;
	cursor: pointer;
}

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;
}

/* 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;
}

nav ul li span {
	color: #ffffff;
	font-size: 13px;
}

@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%;
}

.tools {
	width: 100%;
	margin-bottom: 20px;
}

.tools select {
	width: 140px;
}

.tools #year {
	width: 40px;
}

.tools #surname {
	width: 30%;
}

@media only screen {
  .print {
    display: none;
  }
}

@media only screen and (max-width: 630px) {
	#members .desktop {
		display: none;
	}
	.tools #surname {
		width: 60%;
	}
}

@media only screen and (max-width: 380px) {
	.tools #surname {
		width: 90%;
	}
}

.listing {
	width: 100%;
	margin-bottom: 30px;
}

.listing th {
	text-align: left;
	margin-bottom: 10px;
	border-bottom: solid 1px;
}

.listing td {
	padding: 6px;
}

.listing td.button {
	width: 30px;
	text-align: center;
}

.listing a {
}

/* Member view */

.memberTab a {
	font-size: 14px;
	font-weight: 400;
	color: #FBFBFB;	
	padding: 10px 20px;
	border-radius: 10px;
}

.memberData {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start
	align-items: flex-start;
	align-content: flex-start;
}

.memberData h3 {
	width: 100%;
}

.memberData p {
	margin-right: 20px;
}

#addPayment {
	display: none;
}

/* 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;
}

#mails .body {
	font-size: 10px;
	text-align: left;
}

.mailEditor input[type="submit"] {
	width: 100%;
	margin-top: 20px;
}

.address {
	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%;
	}
}

/* ********** */

/* 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%;
	}
}

.socialSecurityCalc {
	position:relative; 
	bottom: -5px;
}

.discard {
	background-color: red;
	color: #ffffff;
	border-radius: 5px;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: 16px;
}

/* ********* */

aside {}

footer {}

/* Printing rules */

@media print {
	@page {
	    size: auto;   /* auto is the initial value */
	    margin: 0;  /* this affects the margin in the printer settings */
	}
	body {
		margin-top:0 !important;
	}
	header {
		position: static;
	}
	.listing {
		  page-break-after:auto;
	}
	.listing tr {
		page-break-inside:avoid; 
		page-break-after:auto;
	}
	.listing tr td {
		page-break-inside:avoid; 
		page-break-after:auto;
	}
	.listing thead { 
		display:table-header-group; 
	}
	.listing tfoot { 
		display:table-footer-group; 
	}
   	.noPrint {
   		display: none;
   }
}
