@media screen and (max-width: 904px) {

body{
	overflow: auto;
}

div.popup-background div.popup-window div.move{ display: none; }

div#content section.main div.boxes div.box a.button:not(.transparent){ position: absolute; bottom: 0; width: 100%; border-radius: 0; padding: 20px 0; }
div#content section.main div.boxes div.box a.button.green{ left: 0; }
div#content section.main div.boxes div.box a.button.gray{ right: 0; }
/*div#content section.main div.boxes div.box a.button.transparent{ position: relative; }*/

*:hover{ opacity: 1 !important; }

button:not(.transparent),
a.button:not(.transparent){
	box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
button.hovered,
a.button.hovered{
	box-shadow: 0 0 0 !important;
}

.shadow{
	background-color: #F8F8F8;
	border-radius: 0;
	box-shadow: 0 0 0;
}


	div.popup-background div.popup-window{
		max-width: 525px;

		border-radius: 8px;
		box-shadow: 0 0 10px rgba(0,0,0,.1);
	}

			div.popup-background div.popup-window.form div.name{
				width: 40%;
			}

			div.popup-background div.popup-window.form div.value{
				width: 60%;
			}


	
	div#content section.login > div{
		width: 100%;
		height: 100%;

		flex-direction: column;
	}

		div#content section.login > div > div{
			width: 80%;
			max-width: 700px;
			padding: 60px 60px 120px 60px;
		}

			div#content section.login div.top{
				width: 100%;
				max-width: 100%;

				padding: 25px 50px;
				border-radius: 0;
			}

				div#content section.login div.top div.title{
					margin: 15px 0;

					line-height: 25px;

					font-size: 25px;
					font-weight: 100;
				}

				div#content section.login div.top div.sub-title{
					font-size: 14px;
				}


		div#content section.login div.main{
			margin: 60px auto;

			border-radius: 8px;
			box-shadow: 0 0 10px rgba(0,0,0,.1);
		}


	div#content header{
		padding: 20px 30px;
	}

		div#content header a{ font-size: 14px; }
			div#content header nav a{
				display: inline-block;
				width: 30px;
				position: relative;

				overflow-x: hidden;
				white-space: nowrap;

				color: #FD9700;
				margin-left: 10px;
			}
				div#content header nav a i{
					position: absolute;
					top: 5px; left: 0;
					float: left;

					color: #ffffff;
				}

	div#content section.main{
		padding: 30px 30px 100px 30px;
		box-sizing: border-box;

		display: block;
		overflow-y: scroll;
		height: auto;
		max-width: none;
	}

		div.popup-background div.popup-window.form nav.person,
		div#content section.main nav.person{
			font-size: 15px;

			white-space: nowrap;
			overflow-x: auto;

			-webkit-overflow-scrolling: touch;
		}

		div#content section.main div.boxes{
			flex-direction: column;

			padding: 0;
			height: auto;
		}
			div#content section.main div.boxes > div:first-child{ padding-right: 0; }
			div#content section.main div.boxes > div:last-child{ padding-left: 0; }

			div#content section.main div.boxes div.box{
				margin-top: 60px;
			}

				div#content section.main div.boxes div.box div.middle{
					overflow-y: visible;

					background-color: #ffffff;
					border-radius: 8px;
					box-shadow: 0 0 10px rgba(0,0,0,.1);
				}

					div.popup-background div.popup-window.form div.value label span{
						font-size: 14px;
					}

	div.popup-background div.popup-window.form nav.person{ margin-top: -20px; }


	div.popup-background div.popup-window.calendar{
		width: 90%;
		max-width: none;
	}
		div.popup-background div.popup-window.calendar .content-box{
			border-radius: 8px;
			box-shadow: 0 0 10px rgba(0,0,0,.1);
		}
}
