
.tac {
	text-align: center;
}

#soms_nav, #soms_app_nav a {
	border-color: #333;
}

#soms_nav, #show_apps, #show_login {
	border-color: #333;
}

#soms_apps, #login {
	border-color: #CCC;
	box-shadow: 0 0 5px #222;
}

#soms_nav {
	position: fixed;
	z-index: 98;
	top: 0;
	left: 0;
	right: 0;
	height: 30px;
	background: #444;
	border-bottom-style: solid;
	border-bottom-width: 2px;
	box-shadow: 0 0 5px #555;
	
	/* Border is not part of 30px height */
	box-sizing: content-box;
	
	/* Leave padding for show_apps and show_login */
	padding: 0 32px;
}

#soms_nav_padding {
	height: 32px;
}

/* -------------------------------------------------------------------------- */

#show_apps {
	border-right-style: solid;
	border-right-width: 2px;
	left: 0;
}

#soms_apps_container {
	left: 7px;
}

#no_app_privileges {
	padding: 10px;
	width: 180px;
	line-height: 1.4;
}

.soms_app {
	padding: 5px 7px;
	color: #000;
	text-decoration: none;
	display: block;
	border-bottom: 1px solid #CCC;
	line-height: 1.4;
	transition: background-color 200ms linear;
}

.soms_app:hover {
	text-decoration: none;
	background: #E0E0E0;
}

.soms_app:last-of-type {
	border-bottom: none;
}

.soms_app:active,
.soms_app.active {
	box-shadow: 0 0 6px #9a9a9a inset;
}

/* -------------------------------------------------------- */

#login {
	text-align: center;
}

#show_login {
	border-left-style: solid;
	border-left-width: 2px;
	right: 0;
}

#login_container {
	right: 7px;
	/*width: 250px;*/
}

#logged_in_name {
	font-weight: bold;
	margin-top: 10px;
}

#login .contents {
	padding: 10px;
}

#login_container .nav_button {
	display: inline-block;
	color: #555;
	border-radius: 0;
	 transition: none; 
	padding: 7px;
	background: #ddd;
	border-top: 1px solid #B1B1B1;
	min-width: 110px;
	border-bottom: none;
	transition: background-color 200ms linear;
	width: 100%;
	box-sizing: border-box;
}

#login_container .nav_button:hover {
	text-decoration: none;
	background: #C7C7C7;
	color: #2b2b2b;
}

#login_container .nav_button:active, 
#login_container .nav_button.active {
	box-shadow: 0 0 5px #828282 inset;
}

/* ------------------------------------------------------------ */

#show_apps, #show_login {
	height: 16px;
	position: fixed;
	top: 0;
	box-sizing: content-box;
	width: 16px;
	padding: 7px;
	background: #666;
	cursor: pointer;
	z-index: 100;
	transition: background-color 200ms linear;
}

#soms_apps_container, #login_container {
	position: fixed;
	/*width: 300px;*/
	display: none;
	top: 39px;
	z-index: 97;
}

#soms_apps, #login {
	position: relative;
	background: #FFF;
	border-style: solid;
	border-width: 0;
	z-index: 2;
	font-size: 14px;
}

#soms_apps_mouseleave, #login_mouseleave {
	position: absolute;
	top: -41px;
	right: -20px;
	bottom: -20px;
	left: -20px;
	z-index: 1;
}

#show_apps:hover, #show_login:hover {
	background: #9e9e9e;
}

#show_apps:active, #show_login:active {
	background: #9e9e9e;
	box-shadow: 0 0 4px #343434 inset;
}

#show_apps img, #show_login img {
	width: 16px;
	height: 16px;
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none; /* Safari */
	-khtml-user-select: none; /* Konqueror HTML */
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* Internet Explorer/Edge */
	user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}

/* --------------------------------------------------------- */

#soms_app_nav_container {
	display: table;
	width: 100%;
	background: #444;
}

#soms_app_nav {
	/*display: block;*/
	display: table-cell;
	height: 30px;
	text-align: center;
	vertical-align: middle;
	/*width: 100%;*/
}

#soms_app_nav_items {
	display: inline-block;
	white-space: nowrap;
	padding: 0 10px;
	visibility: hidden;
}

#soms_app_nav a {
	text-decoration: none;
	font-size: 15px;
	line-height: 30px;
	padding: 0 7px;
	color: #FFF;
	display: inline-block;
	border-left-style: solid;
	border-left-width: 2px;
	background: #555;
	transition: background-color 200ms linear;
}

#soms_app_nav a:hover {
	background: #6b6b6b;
}

#soms_app_nav a:active {
	box-shadow: 0 0 4px #2F2F2F inset;
}

#soms_app_nav a:last-of-type {
	margin-right: 0;
	border-right-style: solid;
	border-right-width: 2px;
}

#soms_app_nav a.active, #soms_app_nav a.active:hover {
	background: #5f7e98;
}

#soms_app_nav_mobile {
	font-size: 15px;
	display: none;
	vertical-align: middle;
	line-height: 20px;
	background: #333;
	color: #FFF;
	border: none;
	padding: 2px;
}