body { min-height: 100vh; min-height: -webkit-fill-available; }
html { height: -webkit-fill-available; }

/* LOGIN */
.login { position: absolute; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: #eee; overflow-y: auto; }
.login .form { width: 800px; height: 400px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 10px rgba(0,0,0,0.05); display: flex; flex-direction: row; }
.login .side { width: 50%; height: 100%; }
.login .inputs { display: flex; align-items: center; justify-content: center; }
.login .container { padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.login .image { background: url(../img/cover.png) #252525 no-repeat center; background-size: cover; }
.login .logo { width: 240px; margin: 0 0 20px 0; }
.login .buttons { margin-top: 15px; width: 100%; display: flex; flex-direction: row; justify-content: space-between; align-items: center; }
@media only screen and (max-width: 900px) {
	.login .form { 	width: 400px; 	height: 680px; 	flex-direction: column-reverse; }
	.login .side { width: 100%; }
	.login .inputs { height: 380px; }
	.login .image { height: 400px; }
}
@media only screen and (max-width: 600px) {
	.login .form { width: calc(100% - 50px); max-width: 300px; height: 570px; }
	.login .inputs { height: 350px; }
	.login .image { height: 240px; }
	.login .container { padding: 0 35px; }
	.login .logo { width: 100%; }
}

/* SIDES */
.screen { position: absolute; width: 100%; height: 100%; overflow: hidden; }
.sides { position: absolute; height: 100%; }
.sidebar { width: 250px; height: 100%; box-shadow: 1px 0 #eee; left: 0; display: flex; flex-direction: column; }
.main-side { width: calc(100% - 250px); height: 100vh; margin-left: 250px; display: flex; flex-direction: column; }
.main-area--mod.sidebar { width: 250px; margin-left: -250px; }
.main-area--mod.main-side { width: 100%; margin-left: 0; }
.sides-modifier { width: 28px; height: 28px; font-size: 20px; line-height: 26px; border-radius: 50%; margin: 0 10px 0 20px; display: flex; justify-content: center; flex-direction: row; background: #fff; color: #777; box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 2px 5px 0 rgba(0,0,0,.05); cursor: pointer; }
.sides-modifier:hover { box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 4px 7px 0 rgba(0,0,0,0.1); }
.sides-modifier:active { box-shadow: 0 0 0 1px rgba(0,0,0,0.1), inset 0 2px 5px 0 rgba(0,0,0,0.1); }
@media only screen and (max-width: 800px) {
	.sidebar { width: calc(100% - 70px); margin-left: calc((100% - 70px) * -1); }
	.main-area--mod.sidebar { 	width: calc(100% - 70px); 	margin-left: 0; }
	.main-side { width: 100%; margin-left: 0; }
	.main-area--mod.main-side { width: 100%; margin-left: calc(100% - 70px); }
}

/* HEADER */
.header { flex-basis: 60px; flex-shrink: 0; display: flex; align-items: center; background-color: #eee; }
.header .title { font-size: 18px; line-height: 23px; color: #333; }

/* SIDEBAR MENU */
.sidebar .menu { padding: 0 0 20px 0; margin: 0; overflow-y: auto; list-style: none; }
.sidebar .menu a { text-decoration: none; }
.sidebar .menu .item { height: 30px; padding: 0 15px; display: flex; flex-direction: row; align-items: center; }
.sidebar .menu .title { height: 30px; margin: 10px 0 5px 0; font-size: 13px; line-height: 14px; letter-spacing: 1px; color: #425B79; text-transform: uppercase; box-shadow: inset 0 1px #eee; background: #fafafa; }
.sidebar .menu .icon { font-size: 16px; height: 30px; margin: 0 10px; flex-basis: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #425B79; }
.sidebar .menu .text { font-size: 16px; line-height: 16px; color: #425B79; }
.sidebar .menu .dot { height: 5px; flex-basis: 2px; flex-shrink: 0; border-radius: 2px; background-color: #425B79; opacity: 0; }
.sidebar .menu .item:hover .dot { opacity: 1; }
.sidebar .menu .dot.active { height: 25px; opacity: 1; }
@media only screen and (max-width: 800px) {
	.sidebar .menu .icon { font-size: 19px; }
	.sidebar .menu .text { font-size: 19px; line-height: 19px;}
}

/* USER MENU */
.header .user-menu { margin: 5px 10px 0 auto; position: relative; display: block; width: 40px; height: 45px; }
.header .avatar { width: 40px; height: 40px; line-height: 34px; border-radius: 50%; background-color: #ddd; display: flex; justify-content: center; background-size: cover; background-repeat: no-repeat; background-position: center; font-size: 21px; color: #888; cursor: pointer; overflow: hidden; }
.header .user-name { padding: 5px 16px; font-size: 12px; line-height: 14px; color: #888; text-transform: uppercase; display: flex; justify-content: center; align-items: center; margin-bottom: 5px; text-align: left; white-space: nowrap; }

/* PAGE */
.main-container { height: 100%; position: relative; overflow-x: auto; overflow-y: auto; }
.page-container { width: 800px; max-width: 100%; margin: 0 auto; }

/* CRUD */
.crud { position: absolute; width: 100%; height: 100%; display: flex; flex-direction: column; }
.crud .top,
.crud .bottom { display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 10px; z-index: 1; white-space: nowrap; }
.crud .top { box-shadow: 0 1px #eee; }
.crud .bottom { box-shadow: 0 -1px #eee; }
.crud .search { min-width: 200px;}
.crud .table { flex: 1; padding: 0 10px; overflow: auto; }
.crud .info { font-size: 14px; color: #555; display: flex; flex-direction: row; align-items: center; }
.crud .info { font-size: 14px; color: #555; display: flex; flex-direction: row; align-items: center; }
.crud .buttons { display: flex; flex-direction: row; }

/* DATA TABLE */
.data-table { width: 100%; text-align: left; font-size: 15px; border-spacing: 0; }
.data-table tr { border: 0; }
.data-table tbody tr:hover { background: #f7f7f7; }
.data-table th { position: sticky; top: 0; height: 40px; }
.data-table td,
.data-table th { white-space: nowrap; padding: 4px 5px; text-align: center; }
.data-table thead a { color: #444; text-decoration: none; }
.data-table th { background: #fff; box-shadow: inset #eee 0 -1px; }
