/* RESET */
#contenido, #columna {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    float:initial !important;
    max-width: none !important;
}

#columna .current_page, #columna li:hover {
    width: auto !important;
}

#logo_remove {
    display:inline-block !important;
}

.header_menu {
    float:initial !important;
}

#columna {
    display:block !important;
}

/* Layout */

@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

nav * {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	height: 100%;
	min-height: 100%;
}

body {
	margin: 0;
	min-height: 100%;
	display: grid;
	grid-template-rows: auto 1fr auto;
	grid-template-columns: 100%;
}

#cabecera {
    width:100%;
}

header {
	z-index: 0;
	flex: 0 64px;
	display: flex;
	background: white;
	/*box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.24);*/
}

header .branding, header .page-details, header .settings {
	display: flex;
	align-items: center;
}

header .branding {
	flex: 0 0 256px;
	order: 0;
	justify-content: flex-start;
}

header .branding img {
	max-height: 32px;
	max-width: 175px;
}

header .page-details {
	flex: 1 1 100%;
	order: 1;
	padding: 0 24px;
	overflow: hidden;
}

header .page-details .title {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 20px;
	line-height: 24px;
}

header .settings {
	flex: 0 0 256px;
	order: 2;
	justify-content: flex-end;
}

.menu-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
}

.menu-button:hover {
	background: rgba(0, 0, 0, 0.08);
	cursor: pointer;
}

app {
	flex: 1;
	display: flex;
}

app > nav {
	background: #faf9f8 !important;
	flex: 0 0 256px;
	order: 0;
	border-right: 1px solid #d9d9d9;
}

app > nav .branding, app > nav .title-block {
	height: 64px;
	display: flex;
	align-items: center;
	padding: 0 24px;
}

app > nav .branding img, app > nav .title-block img {
	max-height: 32px;
	max-width: 175px;
}

app > nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

app > nav ul li a {
	display: flex;
	align-items: center;
	height: 56px;
	padding: 0 20px;
	text-decoration: none;
	color: black;
}

app > nav ul li a span {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

app > nav ul li a:hover {
	background: rgba(0, 0, 0, 0.08);
	cursor: pointer;
}

app > nav ul li a i {
	margin-right: 20px;
	opacity: 0.5;
}

article {
	background: #f3f3f3;
	flex: 1 1 100px;
	order: 1;
	padding: 24px;
}
/*
.card {
	max-width: 960px;
	width: 100%;
	height: 200px;
	margin: 0 auto;
	background: white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.24);
}

.card:not(:last-child) {
	margin-bottom: 24px;
}
*/
app aside {
	background: #faf9f8;
	flex: 0 0 256px;
	order: 2;
	overflow: auto;
	border-left: 1px solid #d9d9d9;
	position: absolute;
	right: 0;
	width: 256px;
	display: none;
	transition: all 0.2s ease;
	overflow: auto;
}

aside.open {
	right: 0;
	box-shadow: 2px 0 8px rgba(0, 0, 0, 0.24);
	display:block;
}

footer {
	border-top: 1px solid #d9d9d9;
	padding:40px 0;
}

.collapse-menu {
    display:none;
}

@media (min-width: 1000px) {

    /*
    #cabecera .menu li i {
        display:none;
    }
    */

    #cabecera .menu {
        display:block;
    }

	.menu-toggle.nav {
		display: none;
	}

	.branding {
		padding: 0 24px;
	}

	app > nav .title-block {
		display: none;
    }
    
    .collapse-menu {
        display:none;
    }
}

@media (max-width: 1000px) {

    
    #cabecera ul.menu a  {
        margin:0px 0px 0px 8px;
        font-size:0.8em;
    }
	
    .collapse-menu {
        display:block;
    }

	app > nav, aside, .branding img {
		display: none;
	}

	header .branding, header .settings {
		flex: 0 0 64px;
	}

	header .page-details {
		padding: 0 24px;
		justify-content: center;
	}
	article {
		padding: 16px;
	}

	.card:not(:last-child) {
		margin-bottom: 16px;
	}

	app > nav {
		position: absolute;
		top: 0;
		left: -256px;
		width: 256px;
		height: 100%;
		display: block;
		transition: all 0.2s ease;
		overflow: auto;
	}

	app > nav.open {
		left: 0;
		box-shadow: 2px 0 8px rgba(0, 0, 0, 0.24);
	}
}