/* rightmenu */
/*
 * off-canvas overlay menu on the right
 */
#rightmenu {
	background:#438BBB;
	position:fixed;
	top:0;
	right:0;
	bottom:0;
	width:5.5rem;
	color:white;
	padding:0;
	border-left:0.25em solid #438BBB;
	margin:0;
	margin-right: -5.5rem;
	transition: transform 0.25s ease-in;
	z-index:10000;
	transform-style:flat;
	transform: translate3d(0,0,0);
}
#rightmenu.show {
	transform: translateX(-5.5rem);
}
#rightmenu nav {
	height: 100%;
	overflow-y: auto;
}
#rightmenu nav a {
	display:block;
	padding:0.5em;
	text-align:center;
	color:white;
	font-weight:bold;
	font-size:0.75rem;
	text-decoration:none;
	overflow: hidden;
	text-overflow: ellipsis;
	position: relative;
}
#rightmenu nav a img {
	display:block;
	width:60%;
	height:auto;
	margin:0 auto;
	margin-bottom: 0.2rem;
}
#rightmenu .notify {
	position: absolute;
	top: 2px;
	left: -12px;
	width: 10px;
	height: 10px;
	text-align: center;
	line-height: 1;
	background: #F29220;
	font-size: 10px;
	border-radius: 1000em;
	z-index: 1;
}
#rightmenu nav .count {
	box-sizing: border-box;
	position: absolute;
	top: 0;
	right: 0.7em;
	min-width: 1.4em;
	padding: 0.1em 0.2em;
	background-color: #F09403; /* combain orange */
	border-radius: 100rem;
	text-align: center;
	font: bold 13px/15px Helvetica, Verdana, Tahoma;
	color: #FFF;
}
#rightmenu nav .count:before {
	content:attr(data-count);
}
#rightmenu .count[data-count="0"] {
	display:none;
}
/* scrollbar */
#rightmenu::-webkit-scrollbar {
	width: 5px;
	height: 5px;
}
#rightmenu::-webkit-scrollbar-track-piece {
	background-color: #333;
	-webkit-border-radius: 0;
}
/* flag */
#rightmenu:before {
	content:'';
	border:1.5rem solid #438BBB;
	border-left-color:transparent;
	border-bottom-color:transparent;
	width:0em;
	height:0em;
	position:absolute;
	top:0;
	left:-3rem;
}
/* flag icon */
#rightmenu:after {
	content: '';
	position: absolute;
	top: 0.25rem;
	left: -1.3rem;
	width: 1rem;
	height: 1rem;
	background-size: contain;
	background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBzdHlsZT0iZmlsbDp3aGl0ZTsiIHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiIgZmlsbD0iIzAwMDAwMCI+PHBhdGggZD0iTSAzMiA5Ni4wMEwgNDgwIDk2LjAwTCA0ODAgMTkyLjAwTCAzMiAxOTIuMDB6TSAzMiAyMjQuMDBMIDQ4MCAyMjQuMDBMIDQ4MCAzMjAuMDBMIDMyIDMyMC4wMHpNIDMyIDM1Mi4wMEwgNDgwIDM1Mi4wMEwgNDgwIDQ0OC4wMEwgMzIgNDQ4LjAweiIvPjwvc3ZnPg==);
	display: inline;
	background-position: right;
}
@media only screen and (max-width: 1024px) {
	#rightmenu { border:0; }
}
/* outsider */
#rightmenu_outside {
	position:fixed; 
	top:0; 
	left:0; 
	right:5.5rem; 
	bottom:0; 
	z-index:10001;
}
@media print {
	#rightmenu {
		display:none;	
	}	
}


/* leftmenu */
#leftmenu {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: 20em;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	margin:0;
	margin-left: -20em;
	transition: transform 0.25s ease-out;
	background: #438BBB;
	color: #FFF;
	padding:0;
	overflow:hidden;
	z-index:10000;
	transform-style:flat;
}
#leftmenu.show {
	transform: translateX(100%);
}
