/*
	========== Z-INDEX LIST ==========
	0-500:		ALAP
	500-1000:	POPUP
	1000-1500:	FINISH
*/


/* --- FONTS --- */
@font-face {
	font-family: 'Bebas Neue';
	font-weight: normal;
	src: url('/assets/fonts/BebasNeue/BebasNeue-Regular.otf') format('opentype'),
		url('/assets/fonts/BebasNeue/BebasNeue-Regular.woff') format('woff'),
		url('/assets/fonts/BebasNeue/BebasNeue-Regular.ttf') format('truetype');
}
@font-face {
	font-family: 'Bebas Neue';
	font-weight: bold;
	src: url('/assets/fonts/BebasNeue/BebasNeue-Bold.otf') format('opentype'),
		url('/assets/fonts/BebasNeue/BebasNeue-Bold.woff') format('woff'),
		url('/assets/fonts/BebasNeue/BebasNeue-Bold.ttf') format('truetype');
}



/* --- GLOBAL PARAMETERS --- */
body {
	background: #eff2f5;

	font-family: 'Open Sans', sans-serif;
	font-size: 1rem;
	color: #616161;

	overflow-y: scroll;
	overflow-x: hidden;
}

.center {
	width: 100%;
	max-width: 1230px;
	
	padding-left: 15px;
	padding-right: 15px;
	
	box-sizing: border-box;
}


/* --- LOGIN --- */
body.login {
	display: -webkit-flex;
	display: flex;
	
	-webkit-justify-content: center;
	justify-content: center;
	
	width: 100%;
}
#login {
	display: -webkit-flex;
	display: flex;
	
	-webkit-flex-direction: column;
	flex-direction: column;
	
	-webkit-justify-content: center;
	justify-content: center;
	
	-webkit-align-items: center;
	align-items: center;
	
	padding-top: 50px;
	padding-bottom: 10%;
	
	width: 100%;
}

#login_body {
	width: 100%;
	max-width: 675px;
	
	padding-bottom: 60px;
	margin-top: 6%;
	
	background: #ffffff;
	
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
}
#login_body .error {
	display: none;
	
	padding: 12px 20px;
	
	background: #FF7171;
	
	text-align: center;
	font-size: 1.5em;
	color: #FFF;
}
#login_main { padding: 40px 15px; }
#login_main h1 {
	margin-bottom: 25px;
	
	font-family: 'Bebas Neue', sans-serif;
	font-weight: bold;
	font-size: 4em;
	color: #333333;
	text-align: center;
}
#login_main .form {
	display: -webkit-flex;
	display: flex;
	
	-webkit-justify-content: center;
	justify-content: center;
	
	-webkit-align-items: flex-end;
	align-items: flex-end;
	
	max-width: 540px;
	margin: 0 auto;
}
#login_main .form input {
	-webkit-flex-grow: 1;
	flex-grow: 1;
	
	height: 42px;
	box-sizing: border-box;
	
	margin: 0 6px;
	padding: 0 12px;
	
	border-bottom: 2px solid #e3e3e3;
	
	font-family: 'Bebas Neue', sans-serif;
	font-weight: bold;
	font-size: 2em;
	color: #959595;
	
	-webkit-transition: color .2s, border .2s;
	transition: color .2s, border .2s;
}
#login_main .form input:first-child { margin-left: 0; }
#login_main .form input:last-child { margin-right: 0; }
#login_main .form input::-webkit-input-placeholder { color: #cccccc; }
#login_main .form input:-moz-placeholder { color: #cccccc; }
#login_main .form input::-moz-placeholder { color: #cccccc; }
#login_main .form input:-ms-input-placeholder { color: #cccccc; }
#login_main .form input:focus {
	border-bottom-color: #5e5e5e;
	color: #5e5e5e;
}

#login_main .form button {
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
	
	height: 40px;
	
	box-sizing: border-box;
	
	padding: 4px 15px;
	padding-bottom: 0;
	margin: 0 10px;
	
	background: #2db8e5;
	border-radius: 4px;
	
	font-family: 'Bebas Neue', sans-serif;
	font-weight: bold;
	font-size: 2em;
	color: #fff;
	text-align: center;
	
	cursor: pointer;
	
	-webkit-transition: background .2s;
	transition: background .2s;
}
#login_main .form button:first-child { margin-left: 0; }
#login_main .form button:last-child { margin-right: 0; }
#login_main .form button:hover { background: #3bc4f1; }
#login_main .form button:active { background: #017ea6; }

@media screen and (max-width: 580px){
	#login_main .form {
		-webkit-flex-direction: column;
		flex-direction: column;
	}
	#login_main .form input, #login_main .form button {
		width: 100%;
		margin: 5px 0;
	}
	#login_main .form button { margin-top: 20px; }
}




/* - - - HEADER - - - */
#header {
	position: relative;
	padding: 20px 0;
	background: #ffffff;
}
#header > .center {
	display: -webkit-flex;
	display: flex;
	
	-webkit-justify-content: space-between;
	justify-content: space-between;
	
	-webkit-align-items: center;
	align-items: center;
}
#header .logo {
	display: block;
	height: 35px;
	
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
}
#header .logo img {
	display: block;
	height: 100%;
}
#header h1 {
	margin-left: 25px;
	margin-top: 4px;
	
	-webkit-flex-grow: 1;
	flex-grow: 1;
	
	font-family: 'Bebas Neue', sans-serif;
	font-size: 2.6em;
	color: #666666;
	font-weight: bold;
}
#header .logout {
	display: -webkit-flex;
	display: flex;
	
	-webkit-justify-content: center;
	justify-content: center;
	
	-webkit-align-items: center;
	align-items: center;
	
	height: 43px;
	
	box-sizing: border-box;
	
	padding: 0 16px;
	padding-top: 2px;
	
	font-family: 'Bebas Neue', sans-serif;
	font-size: 1.8em;
	color: #fff;
	font-weight: bold;
	
	background: #b9b9b9;
	border-radius: 4px;
	
	-webkit-transition: background .2s;
	transition: background .2s;
	
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
#header .logout:hover, #header .logout:focus { background: #A3A3A3; }
#header .logout:active { background: #737373; }


/* - - - MESSAGE - - - */
#message {
	position: absolute;
	display: none;
	
	width: 100%;
	height: 100%;
	
	left: 0;
	top: 0;
	
	background: #555;
	
	overflow: hidden;

	z-index: 1000;
}
#message.success { background: #87d453; }
#message.error { background: #d45353; }
#message .center {
	display: -webkit-flex;
	display: flex;
	
	-webkit-justify-content: center;
	justify-content: center;
	
	-webkit-align-items: center;
	align-items: center;
	
	height: 100%;
}
#message .text {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 3em;
	color: #fff;
	font-weight: bold;
	text-align: center;
	
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#message .close {
	display: block;
	
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
	
	width: 19px;
	height: 20px;
	
	margin-left: 25px;
	
	background: url('/assets/img/message-close.png') no-repeat 0 0;
}



/* - - - MAIN - - - */
#main {
	box-sizing: border-box;
	padding: 14px 0 60px 0;
}


/* - - - SEARCH - - - */
#search {
	display: flex;
	position: relative;

	align-items: center;
	margin-bottom: 15px;
}
#search input {
	display: block;
	
	width: 100%;
	height: 58px;
	
	box-sizing: border-box;
	padding: 0 21px;
	
	background: #fff;
	
	font-size: 1.6em;
}
#search .no_result {
	display: none;
	position: absolute;
	
	width: 100%;
	top: 200px;
	
	font-family: 'Bebas Neue', sans-serif;
	text-align: center;
	font-weight: bold;
	font-size: 3.6em;
	color: #adb5bd;
}
#search .G-refresh {
	flex-shrink: 0;
	margin-top: 7px;
}
.disabled {
	background-color: #f9ebcf !important;
}
