* {
	/*touch-action: none;*/
}

body {
	font-family: "source-han-sans-traditional", sans-serif;
	font-weight: 200;
	font-style: normal;
	background-color: #eee;
	/*width: 100%;*/
	width: 320px;
	margin: 0 auto;
	padding: 0;
}

p {
	margin: 0;
	padding: 0;
}

a {
	cursor: pointer;
}

.blockUI.blockOverlay {
	touch-action: none;
}

.blockUI.blockOverlay::before {
	height: 1em;
	width: 1em;
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-left: -0.5em;
	margin-top: -0.5em;
	content: "";
	animation: spin 1s ease-in-out infinite;
	background: url("../images/loader.gif") center center;
	background-size: cover;
	line-height: 1;
	text-align: center;
	font-size: 3em;
	color: rgba(#000, 0.75);
}

.hideScroll {
	overflow: hidden;
	height: 100%;
}

#container {
	background-color: #fff;
	/*height: 100vh;*/
}

#header {
	margin: 0;
	padding: 5px;
}

#header ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#header ul li {
	display: inline-block;
}

#header #head_logo {
	width: 33.5%;
}

#header #top_menu {
	width: 65%;
	text-align: right;
}

#nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 2px solid #aaa;
}

#nav ul:after {
	content: '';
	display: block;
	clear: both;
	height: 0;
	visibility: hidden;
}

#nav ul li {
	margin: 0 1.25% 0 1.25%;
	width: 17%;
	max-width: 120px;
	float: left;
}

#nav ul li a {
	border-color: #eaeaea;
	border-radius: 3px 3px 0 0;
	border-style: solid;
	border-width: 2px 2px 0 2px;
	background-color: #f1f1f1;
	box-sizing: border-box;
	color: #666;
	display: block;
	text-align: center;
	text-decoration: none;
	width: 100%;
}

#nav ul li a:hover {
	background-color: #fff;
	position: relative;
	color: #333;
	font-weight: 500;
}

#nav ul li a.selected {
	border-color: #aaa #aaa #fff #aaa;
	background-color: #fff;
	position: relative;
	color: #333;
	font-weight: 500;
}

#nav ul li a.selected:after {
	background-color: #fff;
	bottom: -2px;
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	width: 100%;
}

#main {
	padding: 10px 0;
}

#main p.info {
	padding: 2px;
}

#main p.info.account {
	font-size: 85%;
	text-indent: -2.2em;
	margin-left: 2.2em;
}

#main p.info.account span {
	font-weight: 600;
}

#main p.info.account span.filter {
	cursor: pointer;
}

#main p.info.post_count {
	font-size: 85%;
}

#main p.info.amount {
	font-size: 90%;
    font-weight: 500;
}

#main p.add_record,
#main p.cancel_add_record,
#main span.back_all {
	padding: 1px 2px;
	margin: 3px 0 3px 2px;
	cursor: pointer;
	font-size: 85%;
	display: inline-block;
	border: 1px solid #888;
	border-radius: 3px;
}

#main span.tag_group {
	margin: 0 3px 3px 0;
	padding: 1px 3px;
	display: inline-block;
	border: 1px solid #888;
	color: #888;
	cursor: pointer;
	background-color: #fffeea;
	border-radius: 4px;
	text-indent: 0;
}

#main span.tag_group span.delete {
	font-family: sans-serif;
	color: #f00;
	padding-right: 2px;
}

#record div {
	padding: 3px 0;
}

#record div.data:nth-child(odd) {
	background-color: #f2f2f2;
}

#record div.data:hover {
	background-color: #f9ffbe;
}

#record div.data.record {
	cursor: pointer;
}

#record div.details {
	padding: 5px;
	margin: 5px;
	border: 1px solid #ccc;
	font-size: 80%;
	background-color: #fefff7;
	display: none;
}

#record ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#record ul:after {
	content: '';
	display: block;
	clear: both;
	height: 0;
	visibility: hidden;
}

#record ul li {
	margin: 0 1% 0 1%;
	padding: 0 0.25% 0 0.25%;
	width: 17%;
	max-width: 120px;
	border-radius: 4px;
	float: left;
	text-align: center;
	font-size: 80%;
}

#record ul li.filter {
	cursor: pointer;
}

#record ul li.plus {
	background-color: #dbf3cf;
}

#record ul li.minus {
	background-color: #ffdae3;
}

#record ul li.equal {
	background-color: #c4eaff;
}

#record ul li span {
	display: block;
}

#record ul li.date span {
	text-align: center;
}

#record ul li.total {
	font-weight: 600;
	text-align: center;
}

#record p.note {
	margin-left: min(20%, 158px);
	padding: 1px 0;
	font-size: 80%;
}

#record p.note .tag {
	margin: 0 3px 0 0;
	padding: 1px 3px;
	display: inline-block;
	border: 1px solid #888;
	color: #888;
	cursor: pointer;
	background-color: #fffeea;
	border-radius: 4px;
}

#record p.title {
	font-weight: 600;
	margin-top: 3px;
	margin-bottom: 3px;
}

#record p.loaded {
	height: 100px;
	background: url("../images/loader.gif") no-repeat center center;
}

#filter {
	font-size: 85%;
}

#filter div {
	display: inline-block;
}

#filter p.search_filter,
#filter p.empty_keyword {
	display: inline-block;
	vertical-align: middle;
}

#filter input,
#filter select,
#filter span {
	display: inline-block;
	border: 1px solid #888;
	margin: 3px 0 3px 2px;
	border-radius: 3px;
	vertical-align: bottom;
}

#filter select {
	height: 23px;
	font-size: 95%;
}

#filter input {
	height: 20px;
	font-size: 95%;
}

#filter select.disabled {
	display: none;
}

#filter select option:disabled {
	color: #eee;
}

#filter span {
	padding: 1px 2px;
	cursor: pointer;
}

#filter span.disabled {
	border: 1px solid #ccc;
	color: #ccc;
	cursor: unset;
}

#filter span.none {
	display: none;
}

#filter span.by_interval_text {
	border: 0;
}

#accounts_list {
	font-size: 80%;
	font-weight: 600;
}

#accounts_list ul {
	margin: 0;
	padding: 5px;
	list-style: none;
}

#accounts_list ul li {
	display: inline-block;
}

#accounts_list ul li.name {
	width: 75%;
	vertical-align: top;
}

#accounts_list ul li.balance {
	width: 23%;
	text-align: right;
	vertical-align: top;
}

#accounts_list .account_data {
	padding: 1px 0;
	cursor: pointer;
}

#accounts_list .account_data.main {
	background-color: #f2f2f2;
}

#accounts_list .account_data.main:hover {
	background-color: #bed9ff;
}

#accounts_list .account_data.sub:hover {
	background-color: #f9ffbe;
}

#accounts_list .account_data.sub {
	font-weight: normal;
}

#accounts_list .account_data.sub ul {
	padding-left: 1.5em;
}

#accounts_list div.details {
	padding: 5px;
	margin: 5px;
	border: 1px solid #ccc;
	font-size: 80%;
	background-color: #fefff7;
	display: none;
}

#add_record ul {
	margin: 0;
	padding: 5px;
	list-style: none;
	font-size: 85%;
}

#add_record ul li {
	display: inline-block;
	vertical-align: middle;
}

#add_record ul li.item {
	width: 25%;
	max-width: 65px;
}

#add_record ul li.content {
	width: 75%;	
}

#add_record select {
	display: inline-block;
	height: 23px;
	max-width: 100%;
	border: 1px solid #888;
	margin: 3px 0 3px 2px;
	border-radius: 3px;
	vertical-align: bottom;
	font-size: 95%;
}

.red {
	color: #f00;
}

.green {
	color: #080;
}

.blue {
	color: #00f;
}

.normal {
	color: #0693e3;
}

@media screen and ( max-width: 450px ) {
	body {
		width: 100%;
	}
}

@media screen and ( max-width: 320px ) {
	#record ul li span.small {
		font-size: 50%;
	}
}