/* 色调
前景: #04be02;
背景: #fffffe;
 */

html, body {
	overflow: hidden;
}

* {
	margin: 0;
	padding: 0;
}

.mui-container, .mui-page {
	background-color: #fffffe;
	font-size: 17px;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	overflow: hidden;
	-webkit-overflow-scrolling: touch;
/*	display: flex;
	flex-direction: column; */
}

.mui-container {
	display: none;
	background-color: #04be02;
}

.mui-page>.hd, .mui-page>.bd {
	position: absolute;
	width: 100%;
	border: 0px;
}

.mui-page>.hd:first-of-type {
	background-color: #04be02;
	color: #fffffe;
}

.hd {
	text-overflow: ellipsis;
	border: 1px solid transparent; /* 防止子元素margin越界*/
}

.bd {
	overflow-x: hidden;
	overflow-y: auto;
	/*flex: 1;*/
}

.hd h1, .hd h2, .hd h3 {
	text-align: center;
	font-size: inherit;
	font-weight: normal;
	margin: 0.1em auto;
	line-height: 2.0;
}

.mui-page>.ft {
	position: absolute;
	bottom: 0px;
	width: 100%;
	text-align: center;
}

#footer {
	position: absolute;
	bottom: 0px;
}

/* navbar */
.mui-navbar {
	width: 100%;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
}

.mui-navbar > * {
	-webkit-box-flex: 1;
	-webkit-flex: 1;
	-ms-flex: 1;
	flex: 1;
	display: block;
	text-align: center;
	background-color: #fffffe;
	border-top: 1px solid #ececec;
	border-bottom: 1px solid #ececec;
	color: black;
}

.mui-navbar > .active {
	color: #04be02;
	font-weight: 500;
	border-bottom: 3px solid #04be02;
}

.mui-navbar > a {
	padding: 3px 0;
}

.mui-container.mui-ios {
	/* 禁止选择。在IOS上尝试。 */
	-webkit-user-select: none;
	/* 禁止系统菜单 */
	/*-webkit-touch-callout: none; */
	/*-webkit-overflow-scrolling: touch;*/
}

/* 微信中不显示hd */
.mui-weixin .mui-page > .hd:first-of-type {
	display:none;
}

/* 标准动画: slideIn: 进入; slideOut: 返回时当前页退出; slideIn1: 返回时新页面进入（已不用） */
@keyframes slideIn {
	from {
		transform: translateX(100%);
	}
	to {
		transform: translateX(0);
	}
}
@keyframes slideIn1 {
	from {
		transform: translateX(-100%);
	}
	to {
		transform: translateX(0);
	}
}
@keyframes slideOut {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(100%);
	}
}

@-webkit-keyframes slideIn {
	from {
		-webkit-transform: translateX(100%);
	}
	to {
		-webkit-transform: translateX(0);
	}
}
@-webkit-keyframes slideIn1 {
	from {
		-webkit-transform: translateX(-100%);
	}
	to {
		-webkit-transform: translateX(0);
	}
}
@-webkit-keyframes slideOut {
	from {
		-webkit-transform: translateX(0);
	}
	to {
		-webkit-transform: translateX(100%);
	}
}

.mui-page.slideIn {
	-webkit-animation: slideIn .2s forwards;
	animation: slideIn .2s forwards;
}
.mui-page.slideOut {
	-webkit-animation: slideOut .2s forwards;
	animation: slideOut .2s forwards;
}

/* begin: mui-ani="up" */
@keyframes slideIn_up {
	from {
		transform: translateY(100%);
	}
	to {
		transform: translateY(0);
	}
}
@keyframes slideOut_up {
	from {
		transform: translateY(0);
	}
	to {
		transform: translateY(100%);
	}
}

@-webkit-keyframes slideIn_up {
	from {
		-webkit-transform: translateY(100%);
	}
	to {
		-webkit-transform: translateY(0);
	}
}
@-webkit-keyframes slideOut_up {
	from {
		-webkit-transform: translateY(0);
	}
	to {
		-webkit-transform: translateY(100%);
	}
}

.mui-page.slideIn_up {
	-webkit-animation: slideIn_up .4s forwards;
	animation: slideIn_up .4s forwards;
}
.mui-page.slideOut_up {
	-webkit-animation: slideOut_up .4s forwards;
	animation: slideOut_up .4s forwards;
}
/* end */

/* begin: mui-ani="pop" */
.slideIn_pop {
	animation: slideIn_pop .4s forwards;
}
.slideOut_pop {
	animation: slideOut_pop .4s forwards;
}

@keyframes slideIn_pop {
	from {
		transform: scale(.8);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}
@keyframes slideOut_pop {
	from {
		transform: scale(1);
		opacity: 1;
	}
	to {
		transform: scale(.8);
		opacity: 0;
	}
}
/* end */

.mui-loader {
	z-index: 99999;
	position: fixed;
	top: 50%;
	left: 50%;
	width: 50px;
	height: 50px;
	margin-top: -25px;
	margin-left: -25px;
	border: 0;
	opacity: .18;
	background: url(ajax-loader.gif) no-repeat;
}

.mui-mask {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,.3);
	z-index: 100;
}

.mui-dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 80%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	border-radius: 5px;
	text-align: center;
	background-color: #fafafc;
	display: none;
	overflow: hidden;
}
.mui-dialog>.hd {
	font-size: 0.9em;
	color: #666;
}
.mui-dialog>.bd {
	padding: 10px;
}

/* 对话框底栏放置按钮组 */
.mui-dialog>.ft {
	position: relative;
	line-height: 48px;
	display: -webkit-box;
	display: -webkit-flex;
	display: flex;
}

.mui-dialog>.ft .mui-btn {
	display: block;
	-webkit-box-flex: 1;
	-webkit-flex: 1;
	flex: 1;
	position: relative;
}

.mui-dialog>.ft .mui-btn:after {
	content: " ";
	position: absolute;
	left: 0;
	top: 0;
	width: 1px;
	bottom: 0;
	border-left: 1px solid #D5D5D6;
	color: #D5D5D6;
	-webkit-transform-origin: 0 0;
	transform-origin: 0 0;
	-webkit-transform: scaleX(0.5);
	transform: scaleX(0.5);
}

.mui-dialog>.ft:after {
	content: " ";
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	height: 1px;
	border-top: 1px solid #D5D5D6;
	color: #D5D5D6;
	-webkit-transform-origin: 0 0;
	transform-origin: 0 0;
	-webkit-transform: scaleY(0.5);
	transform: scaleY(0.5);
}

/* 与mui-dialog一样居中显示，但点击一下自动消失 */
.mui-menu {
	position: absolute;
	top: 50%;
	left: 50%;
	max-width: 95%;
	min-width: 60%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	border-radius: 5px;
	background-color: #fafafc;
	display: none;
	list-style-type: none;
}

/* 右上角菜单 */
.mui-menu.top {
	-webkit-transform: none;
	transform: none;
	left: auto;
	right: 5px;
	top: 35px;
	min-width: 100px;
}

.mui-menu li {
	background-color: #ffffff;
	padding: 10px 20px;
	position: relative;
	cursor: pointer;
}

.mui-menu li:after {
	position: absolute;
	bottom: 0;
	left: 2px;
	right: 2px;
	height: 1px;
	content: '';
	background-color: #eee;
}

.mui-menu li:hover {
	background-color: #eee;
}

.mui-menu a {
	color: inherit;
}

.mui-btn {
	border: 0;
	display: inline-block;
	/*min-width: 80px;*/
	text-align: center;
	background-color: #fffffe;
	cursor: pointer;
	color: #000;
}

.mui-btn:focus {
	outline: 0;
}

.mui-btn.primary {
	color: #04be02;
}
.mui-btn.disabled {
	color: #C7C7C7;
	pointer-events: none;
}

.mui-pullPrompt {
	font-size: 12px;
	overflow: hidden;

	/* 水平、垂直居中 */
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;

	-webkit-box-align: center; 
	-moz-box-align: center; 
	-ms-flex-align: center; 
	-webkit-align-items: center; 
	align-items: center;

	-webkit-box-pack: center; 
	-moz-box-pack: center; 
	-ms-flex-pack: center; 
	-webkit-justify-content: center; 
	justify-content: center;
}

.mui-loadPrompt {
	background-color: #fffffe;
	padding: 5px 3px;
	text-align: center;
	vertical-align: middle;
}

/* my css */
.sp {
	margin: 10px;
}

.nowrap {
	white-space: nowrap;
}

.hidden {
	display: none;
}

.right {
	text-align: right;
}
select.right {
	direction: rtl;
}

/* 标题栏左右侧两个图标，一般是返回和菜单。适合16x16 */
.hd >.btn-icon {
	position: absolute;
	top: 0;
	margin: 5px;
	color: inherit;
}
.hd >a.btn-icon:nth-of-type(2) {
	right: 0;
}
/* 左二 */
.hd >a.btn-icon:nth-of-type(3) {
	left: 32px;
}
/* 右二 */
.hd >a.btn-icon:nth-of-type(4) {
	right: 32px;
}

.icon {
	background-repeat: no-repeat;
	display: inline-block;
	vertical-align: middle;
}
.hd .icon {
	margin: 5px;
}

/* 适合 16x16 列表项或菜单项 */
/* 下拉菜单左侧图标 */
.mui-menu .icon {
	margin: -4px 12px 0px -5px;
}

/* 列表条目左侧图标 */
.weui-cell .icon {
	margin: 0px 12px 0px 5px;
}

/* for jdcloud-uploadpic */
.uploadpic{
	/* 避免inline-block间的间隙. 若子组件要显示文字，需要指定font-size */
	font-size: 0;
}

.uploadpic-item{
	width: 23%;
	padding-top: 23%;
	height: 0;
	margin: 1%;
	background: no-repeat 50%;
	background-size: cover;
	display: inline-block;
	position: relative;
	border: 1px solid #d9d9d9;
	box-sizing: border-box;
}
.uploadpic-btn{
	width: 23%;
	padding-top: 23%;
	height: 0;
	margin: 1%;
	background: no-repeat 50%;
	background-size: cover;
	display: inline-block;
	position: relative;
	border: 1px solid #d9d9d9;
	box-sizing: border-box;
}
.uploadpic-btn:after, .uploadpic-btn:before{
	content: " ";
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%,-50%);
	transform: translate(-50%,-50%);
	background-color: #d9d9d9;
}
.uploadpic-btn:before {
	width: 2px;
	height: 39.5px;
}
.uploadpic-btn:after {
	width: 39.5px;
	height: 2px;
}
.uploadpic-btn input[type=file]{
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}
.uploadpic-item .uploadpic-delItem{
	position: absolute;
	text-align: center;
	top: 0;
	right: 0;
	color: #fff;
	width: 20px;
	height: 20px;
	line-height: 20px;
	border-radius: 20px;
	background-color: rgba(0,0,0,0.3);
	font-size: 17px;
	cursor: pointer;
}
/* jdcloud-uploadpic end*/

/* overwrite weui */
.weui-cells {
	margin-top: 0;
}

.weui-btn {
	cursor: pointer;
}

.weui-btn_mini {
	min-width: 80px;
}

.weui-label {
	min-width: 4em;
	margin-right: 0.2em;
	width: 20%;
}
.weui-cell:before {
	right: 15px;
	width: auto;
}

.weui-select {
	height: auto;
	-webkit-appearance: menulist;
}

.noData {
	height: 50px;
	line-height: 50px;
	text-align: center;
	color: #aaa;
	font-size: 15px;
}
