/*mac chrome scrollbar*/
::-webkit-scrollbar {
	-webkit-appearance: none;
	width: 17px;
	border: 1px solid #f0f0f0;
}
::-webkit-scrollbar-thumb {
	border-radius: 1px;
	background-color: rgba(0,0,0,.5);background-color: #c8c8c8;

}

#loadingmask{
	width: 100%;
	height: 2200px;
	background-image:url(../images/mask50.png);
	position: fixed;
	top: 0px;
	left: 0px;
	z-index: 10000;
	text-align: center;
}

/*auto complete*/
.ui-autocomplete li{
	cursor: pointer;
}


.ui-autocomplete li:nth-child(21){
	pointer-events: none;
	font-weight: bold;
	cursor: default;
}

.ui-autocomplete li:nth-child(21) > a:hover{
	color: black;
	text-decoration: none;
}

.ui-menu-item{
	font-size: 14px;
}
/*auto complete*/

.hopscotch-bubble{
	z-index: 999 !important;
}

.valid {
  background: green;
  color: #fff;
}
.error {
  background: red;
  color: #fff;
}

#hiddenvalues {
	display: none;
}

.column {
	float: left;
	position: relative;
	border: solid Gainsboro thin;
	padding: 4px;
	width:100%;
	min-height: 2000px;min-height: 1825px;
	
	text-align: center;
}

.left{
	float: left;
	text-align: left;
}

.mid{
	float: left;
	text-align: middle;
}

.right{
	float: right;
	text-align: right;
}

.both{
	clear: both;
}

.half{
	width: 50%;
	text-align: center;
}

.quarter{
	width: 25%;
}

.three{
	width: 33%;
}

.column span{
	display:block;
}

.space {
	clear:both;
}

.pink {
	height:25px;
	background: pink;	
}

.deeppink {
	background-image:url(../images/zh-hk/txt-type.jpg);
	height:31px;
	margin-bottom: 10px;
}

.deep{
	background: #e9e9e9;
}

.light{
	background: #f8f8f8;
}

/* sort */
#sort {
	width: 156px;
}

#sort div.space {
	height:13px;
}

#sort #search {
	border: solid #cccccc 1px;
	margin-top: 10px;
}

#sort #search span{
	float: left;
	padding: 2px 0 2px 0;
}

#sort #search #stext{
	padding: 5px 5px 0 5px;
}

#sort #search #sinput{
	width:80px;
	height: 25px;
	line-height: 20px;
	/*background-image:url(../images/searchbg.jpg);*/
	border: none;
	text-align: left;	 
	font-size: 14px;
}

#sort #search #sbtn{
	padding: 6px 0 0 2px;
}

#sort div#foodtype {
	text-align: left;
	width: 200px;
}

ul.fbnav {
	list-style: none;
	margin: 0 20px 0 0;
	padding: 0;
	width: 140px;
	float: left;
	padding: 10px 0;
}

ul.fbnav b{
	font-weight: normal;
	font-size:1.05em;
	margin-left: 5px;
	vertical-align:super;
}

ul.fbnav li{
	width: 115%;
	font-size: 1em;
	color: #E8455C;
	cursor: pointer;
	margin: 0 0 8px 0;
}

ul.fbnav li ul {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.fbnav li ul li{
	width: 70%;
	background: url(../images/subnav-bullet.png) no-repeat left top;
	padding: 0 5px 0 12px;
	background-position: 0 6px;
	margin: 8px 0 0 35px;
}
/* result */

/* result-structure */
#result {
	width: 567px;
}

.element-left, .element-right{
	font-size: 1em;
}

div#resultfood {
	margin-top: 3px;
	overflow-y: scroll; 
	width: 567px;
	height: 1930px;height: 1780px;
	overflow-x: hidden;
}

#result div.middle span.pink {
	width: 96.5%;
}

#result div.element{
	width: 370px;
}

.element-left{
	width: 45%;
	padding-left: 3px;
}

.element-mid{
	width: 2%;
}

.element-right{
	float: left;
	width: 52%;
}

.element-right .deep .left, .element-right .light .left{
	width: 35%;
}

.right-gram {
	float: right;	
}


/* result-top */
.top-right input[type=text] {
	width: 40px;
	height:32px;
	line-height:32px;
	text-align:center;
	background: white;
}

span.lhead {
	float:left;
	padding-bottom: 0px;/*padding-bottom: 20px;*/
}

span.rhead {
	float:right;
	padding-left:5px;
}

span.msg {
	position:absolute;
	padding-left:40%;
}

.bookmarkstar{
	vertical-align:text-bottom;
	cursor: pointer;
}

#result > div.head > span.rhead.msg > span{
	cursor:help;
}

/*bomb left margin*/
#result > div.head > span.rhead.msg > span:nth-child(1) > img{
	margin-left: 5px;
}

ul#fbcontent-nav{
	padding: 4px 4px 0 0 !important;/*padding: 28px 4px 0 0 !important;*/
	text-align: left;
	position: absolute;
	right: 0;
	top: 0.1em;
	list-style: none;
	margin: 0;
	z-index: 1;
}

ul#fbcontent-nav > li ul {
	background-color: #FFFFFF;
	list-style: none;
	margin: 0;
	padding: 0;
	display: none;
}

ul#fbcontent-nav > li > a {
	background: #FF4C4B url(/images/content-nav-bg.gif) no-repeat right center;
	color: #FFFFFF;
	text-decoration: none;
	font-size: 1.2em;
	line-height: 1.8em;
	display: block;
	padding: 0 10px;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	min-width: 130px;
}

#arrowclose {
	position: absolute;
	z-index: 999;
	margin-top: -27px;
	margin-left: 126px;
	cursor: pointer;
}

#arrowexpend {
	display: none;
	position: absolute;
	z-index: 999;
	margin-top: -25px;
	margin-left: 124px;
	cursor: pointer;
}

ul#fbcontent-nav > li ul li a {
	display: block;
	padding: 0 10px;
	font-size: 0.9em;
	line-height: 1.8em;
	text-decoration: none;
	color: #D70B24;
}

ul#fbcontent-nav > li ul li a:hover, ul#fbcontent-nav > li ul li a:active, ul#fbcontent-nav > li ul li a:focus {
	color: #FFFFFF;
	background-color: #FF4C4B;
}


span.right.quarter{
	margin-top: 0px;
}

span.msg {
	padding-top:10px;
}

span.msg span.heart{
	padding-left:10px;
}

#result div.space{
	height: 2px;
}

/* result-mid */
.type_color{
	margin-left: -1px;
}

.food-name{
	width: 500px;
	font-size: 1.1em;
	font-weight: bold;
}

#result div.middle .pink{
	padding: 7px 9px 20px 10px;
}

#result div.middle .pink span{
	float: left;
}

#result div.middle .pink .top-left{
	width: 73%; width: 67%;
	font-size: 0.9em;
}

#result div.middle .pink .top-left b{
	clear: both;
	font-weight:normal;
	font-size: .9em;
	width: 500px;
}

#result div.middle .pink .top-right{
	/*width: 33%;*/
	width: 27%;
	text-align: right;
	font-size: 0.9em;
	font-weight:normal;
}


#result div.middle .space{
	height: 5px;
}

#result div.middle .eachfood{
	padding: 3.5px 0 0 3px;
}

.healthicon {
	float: left;
}

.element-left span, .element-right span{
	font-size: 0.9em;
	padding: 3.5px 5px 0 3px;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	.element-left span, .element-right span{
		padding: 3px 5px 0 3px;
	}
}

/* result-bottom */
span.selectfood {
	width: 82%;
	background-color: #d8e697;
	padding-top: 6px;
	height: 60px;
}

span.selectfood span{
	height: 1px;
	padding-left: 1%;
}

.selectfood .text, .selectfood .gramtext, .selectfood [type=checkbox], .selectfood [type=text]{
	float: left;
}

.selectfood .text{
	padding-top: 3px;
	width: 11%;
	text-align:right;
}

.selectfood .gramtext{
	padding-top: 3px;
}

.selectfood [type=checkbox]{
	margin-top: 8px;
	margin-top: 4px \ ;
}

.selectfood [type=text]{
	width: 36px;
	height: 16px;
	line-height: 16px;
	margin-top: 3px;
	text-align:center;
	font-size:14px;
}

span.save {
	width: 18%;
	height: 66px;
	background-color: #d8e697;
}

span.save .btn-save{
	width: 90px;
	height: 46px;
	margin: 10px 0 0 0px;
	background:#ff6f6e url(../images/zh-hk/btn-submit.png) no-repeat;
	border-radius: 8px;
	cursor: pointer;
}

/* result-border */
#result div.middle {
	border: solid #f5f5f3 4px;
	margin: auto 0;
}

#result div.line div.s1{
	height:5px;
}
#result div.line div.s2{
	height:1px;
	background:#4eb951;
}
#result div.line div.s3{
	height:12px;
}


/* record */
#date_block, #date_block div.space{
	background: #f1f1f1 !important;
}

#date_block > form{
	padding-bottom: 0px;	
}

#record {
	width: 204px;
}

#record > div.head > span > img{
	padding-top: 25px;
}

div.middle span.arrowl {
	float: left;
	padding:23px 2px 0 1px;
}

div.middle span.calendar {
	float: left;
	padding:0 1px 0 1px;
}

div.middle span.arrowr {
	float: left;
	padding:23px 1px 0 2px;
}

#record div.space {
	height: 10px;
	background:white;
}

#to_today{
	cursor: pointer;
		
	padding: 4px 5px 3px 4px;
	border: solid 1px #cecece;
	-webkit-border-top-left-radius: 4px;
	-webkit-border-bottom-left-radius: 4px;
	-moz-border-radius-topleft: 4px;
	-moz-border-radius-bottomleft: 4px;
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
	
	padding: 4px 5px 4px 5px\9;
	margin-left: 7px\9;
}

@-moz-document url-prefix() { /*firefox only css*/
	#to_today{
		padding: 4px 4px 3px 4px;
	}
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {/* IE10+ CSS */
	#to_today{
		padding: 4px 4px 3px 3px;
	}
}

#datepicker{
	width: 68%;
	float: right;
	margin-right: 10px;
	text-align: center;
	margin-left: -13px;	
	height: 31px;
	
	background: white;
	border: solid 1px #cecece;
	-webkit-border-radius: 0px;
	-webkit-border-top-right-radius: 4px;
	-webkit-border-bottom-right-radius: 4px;
	-moz-border-radius: 0px;
	-moz-border-radius-topright: 4px;
	-moz-border-radius-bottomright: 4px;
	border-radius: 0px;
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
	
	margin-left: -3px\9;
	height: 32px\9;
}

input[name$='evabtn']{
	background:url(../images/zh-hk/btn_eva.png) !important;
    border: 0;
    display: block;
    width: 209px;
    height: 95px;
	cursor: pointer;
}

#record div#intake div.type div.row-food{
	padding-left: 1px;
	border: 1px solid #d5d8cb;
	background-color: #edf1e2;
}

#record div#intake div.type span.rfood, #record div#intake div.type span.rtext{
	float: left;
} 

#record div#intake div.type span.text{
	padding: 5px;
	text-align:left;
}

#record div#intake div.type span.rfood{	
	background-color: #F5F5F5;
	border: solid white 3px;
	width: 21.9%;
	height: 45px;
}

#record div#intake div.type span.rtext{
	font-size:0.7em;
	text-align: center;
	padding-bottom: 10px;
	width: 25%;
}

#text-selected{
background:#f0433d url(../images/zh-hk/text-select.png)  no-repeat;
font-size:20px;
height: 32px;
}

#record input[type="text"][name="weight"], #record input[type="text"][name="gender"]{
	float: left;
	
	width: 83px;
	height: 31px;
	line-height: 31px;
	text-align:center;
	font-size: 14px;
	margin-left: 12px;
	
	border: solid 1px #cecece;
	-webkit-border-top-left-radius: 4px;
	-webkit-border-bottom-left-radius: 4px;
	-moz-border-radius-topleft: 4px;
	-moz-border-radius-bottomleft: 4px;
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
	
	width: 82px\9;
	margin-left: 10px\9;
}

@-moz-document url-prefix() { /*firefox css*/
#record input[type="text"][name="weight"], #record input[type="text"][name="gender"]{
	width: 80px;
}
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {/* IE10+ CSS */
	#record input[type="text"][name="weight"], #record input[type="text"][name="gender"]{
		width: 79px;
	}
}

#loginmsg{
	float:left; 
	width:100%;
	padding: 0px 0 20px 0;
}

#pop_banner{
	margin: 0 auto;
	margin-top: 25px;
}

#loginpurpose{
	margin: 30px 0 0px 0;
}

#loginpurpose b, #to_green{
	color: #5AB54A;
}

#loginref{
	font-size: .8em;
	color: #6c6c6c !important;
}

input.button.guest{
	margin-right: 20px;
}

.switch_options{
	margin-left: -3px;
	padding-right:15px;
	float: left;
}

.switch_disable, .switch_enable {
	height: 25px;
	width: 30px;
	text-align:center;
}

#date_block > form > div{
	margin-right: -5px;
	margin-left: -1px\9;
	line-height: 25px;
}

/* ------------------------------------------------------------------------  */
.container1 {
	width: 960px;
	margin: 0 auto;
	position: relative;
	padding: 0 20px;
}

#r_result {
	width: 773px;
	position:absolute;
	left:200px;
	top:0px;
}

div#resultchart {
	width: 773px;
	height: 745px;
	position:absolute;
	top:50px;
}

#r_leftmenu{
	position:absolute;
	top:0px;
	left:20px;
}

#r_leftmenu_shortcut{
	background-image: url('../images/r_menu.jpg');
	background-repeat: no-repeat;
	width: 152px;
	height:205px;
}

#r_leftmenu_btn_group{
	width:152px;
	margin-top:20px;
	text-align:left;
}

#r_leftmenu_btn_group img{
	margin-top:5px;
}

#piechartgroup{
	width:790px;
	height:350px;
	position:absolute;
	top:0px;
}


.piechartbox{
	background-image: url('../images/pie_bg.jpg');
	background-repeat: no-repeat;
	width: 250px;
	height:164px;
	font-family: Microsoft JhengHei;
	font-weight: bold;
	text-align: left;
	position: absolute;
	barcolor: black;
}

.piechartboxtxt{
	position:absolute;
	font-size:100%;
	text-align:center;
	line-height:120%;
	width:80px;
}

.chartdesc{
	font-weight: normal;
	font-size: 80%;
	margin-left: 70px;
	margin-top: 10px;
}

#audio_comment{
	background-image: url('../images/audio_bg.jpg');
	background-repeat: no-repeat;
	width: 784px;
	height:180px;
	font-family: Microsoft JhengHei;
	font-weight: bold;
	text-align: left;
	position:absolute;
	top:425px;
}

#audio_head{
	margin-top: 9px;
	margin-left: 0px;
	font-size: 120%;
	color: #777777;
}

#audio_name{
	width:100px;
	height:30px;
	font-weight:normal;
	font-size:90%;
	line-height:190%;
	font-family: Microsoft JhengHei;
	color:#FFFFFF;
	background-color:#000000;
	position:absolute;
	top:430px;
	left:20px;
}

#datechart{
	position:absolute;
	top:1700px;
	left:5px;
}

.datechartheader{
	position:absolute;
	left: 5px;
	top: -10px;
	font-size: 120%;
	font-family: Microsoft JhengHei;
	font-weight: bold;
	color:#777777;
	width:130px;
}

.input-mini{
	width:60px;
	height:20px;
}

#food_tips{
	width:780px;
	position:absolute;
	left: 5px;
	top: 800px;
	font-family: Microsoft JhengHei;
	color:#000000;
}

.foot_tips_txt_l{
	color:#75CF00;
	font-size:250%;
}

.foot_tips_txt_s{
	font-size:150%;
}

.dyname1, .dyname2{
	font-weight:bold;
	line-height:110%;
}

.dyname1{
	font-size:130%;
	color: #777777;
}

.dyname2{
	font-size:110%;
	color: #FB8B8B;
}
.dyname3{
	font-size:80%;
	color: #777777;
	font-weight:normal;
}

#chartbox {
	width: 700px;
	height: 400px;
	border: 1px solid #CDCDCD;
	padding: 20px;
	border-radius: 3px;
	background-color: white;
	margin-bottom: 15px;
	position: relative;
	box-shadow: 1px 1px 2px #EEE, 0 -3px 5px #F3F3F3 inset;
}

.detailtable{
	font-family: Microsoft JhengHei;
	font-size: 80%;
	width:800px;
}

#detailtable_left{
	position:absolute;
	top: 110px;
	width:150px;
}

#detailtable_right{
	position:absolute;
	top: 110px;
	left: 149px;
	width:650px;
	overflow-x: auto; 
}

.dataindicator{
	width:16px;
	height:16px;
}

.trheight{
	height:50px;
	width:80px;
}

#foodbox1 a:hover, #foodbox2 a:hover, #foodbox3 a:hover, #foodbox4 a:hover, #foodbox5 a:hover, #foodbox6 a:hover{
	background-color:#e6f6d4;
}



@cellHeight: 20px;
@cellWidth: 100px;
@cellPadding: 5px;

@cellsWide: 5;
@cellsHigh: 15;

.fixedTable {
  .table {
    background-color: white;
    width: auto;
    tr { 
      td, th {
        min-width: @cellWidth;
        width: @cellWidth;
        min-height: @cellHeight;
        height: @cellHeight;
        padding: @cellPadding;
      }
    }
  };
  &-header {
    width: (@cellWidth * @cellsWide) + (@cellPadding * 2);
    height: @cellHeight + (@cellPadding * 2);
    margin-left: @cellWidth + (@cellPadding * 2);
    overflow: hidden;
    border-bottom: 1px solid #CCC;
  };
  &-sidebar {
    width: @cellWidth + (@cellPadding * 2);
    height: @cellHeight * @cellsHigh + (@cellPadding * 2);
    float: left;
    overflow: hidden;
    border-right: 1px solid #CCC;
  };
  &-body {
    overflow: auto;
    width: (@cellWidth * @cellsWide) + (@cellPadding * 2);
    height: (@cellHeight * @cellsHigh) + (@cellPadding * 2);
    float: left;
  }
};