/* end: : body text */
html, body {
	font-family: Arial!important;
	font: Arial!important;
	color: #4b4b4b;
}

html, body.chineseVersion{ 
	font-family: Microsoft JhengHei!important;
	font: Microsoft JhengHei!important;
}
.chineseVersion span[style] {
	font-family: Microsoft JhengHei!important;
	font: Microsoft JhengHei!important;
}



.hkbo_title{
	margin-left: 5%;
}
.hkbo_title{
	min-height: 40px;
	   white-space: nowrap;
}
.title {
	font-size: 24px;
	color: #3b3b3b;
	/*background-image: url(https://www.afcd.gov.hk/css/hkbo/green_dot.gif);*/
	background-repeat: no-repeat;
	/*text-indent: 30px;*/
	background-position: 0px 4px;
	clear: both;
	width: 586px;
	/*display: block;*/
	padding-bottom: 20px;
}
/* found */
.found {
	color: #3e5469;
	display: block;
	/*clear: both;*/
	clear: none;
	width: 100%;
	display: block;
	text-align: left;

}
span.founded {
	color: #e43030;
}
/* end: founded */
/* maximum */
.maximum {
	color: grey;
	width: 165px;
	height: 40px;
	text-align: left;
	float: left;
	line-height: 12px;
	padding-left: 5px;
	padding-top: 3px;
	font-size: 10px;
}
.maximum_2 {
	color: #e43030;
	display: block;
	clear: both;
	width: 526px;
	height: 40px;
	display: block;
	text-align: left;
}
/* end: maximum */
/* not found */
.list_view table tbody td span.img_not_found {
	color: #2dab64;
	font-size: 10px;
	width: 60px;
	display: block;
	clear: both;
	float: left;
	text-align: center;
}
.grib_view table tbody td span.img_not_found {
	color: #2dab64;
	font-size: 10px;
	width: 50px;
	display: block;
	clear: both;
	float: left;
	text-align: center;
	line-height: 15px;
    height: 55px;
}
.grib_view table tbody td span.img_not_found img{
	width: 120px;
	height: 132px;
}
/* end: : not found */
/* btn_list */
.btn_list {
	display: inline-block;
	clear: both;
	background: url(https://www.afcd.gov.hk/images/hkbo/list_view.jpg) no-repeat center top; 

	height: 26px;
	width: 26px;
}
.btn_list:hover {
	background: url(https://www.afcd.gov.hk/images/hkbo/list_view_active.jpg) no-repeat center top; 

	height: 26px;
	width: 26px;
}
.btn_list_active {
	display: inline-block;
	clear: both;
	background: url(https://www.afcd.gov.hk/images/hkbo/list_view_active.jpg) no-repeat center top; 

	height: 26px;
	width: 26px;

}
/* end: : btn_list */
/* btn_grid */
.btn_grid {
	display: inline-block;
	clear: both;
	background: url(https://www.afcd.gov.hk/images/hkbo/grid_view.jpg) no-repeat center top; 

	height: 26px;
	width: 26px;
}
.btn_grid:hover {
	background: url(https://www.afcd.gov.hk/images/hkbo/grid_view_active.jpg) no-repeat center top; 

	height: 26px;
	width: 26px;
}
.btn_grid_active {
	display: inline-block;
	clear: both;
	background: url(https://www.afcd.gov.hk/images/hkbo/grid_view_active.jpg) no-repeat center top; 

	height: 26px;
	width: 26px;
}
/* end: btn_grid */

/* btn_fist */
.btn_first {
	    margin-right: -9px;
	display: inline;
	clear: both;
	float: right;
	background-image: url(https://www.afcd.gov.hk/css/hkbo/first.gif);
	background-repeat: no-repeat;
	height: 17px;
	width: 17px;
}
span.btn_first:hover {
	background-image: url(https://www.afcd.gov.hk/css/hkbo/first_hover.gif);
	background-repeat: no-repeat;
}
/* end: btn_first */

/* btn_last */
.btn_last {
	    margin-right: -5px;
	display: inline;
	clear: both;
	float: right;
	background-image: url(https://www.afcd.gov.hk/css/hkbo/last.gif);
	background-repeat: no-repeat;
	height: 17px;
	width: 17px;
}
span.btn_last:hover {
	background-image: url(https://www.afcd.gov.hk/css/hkbo/last_hover.gif);
	background-repeat: no-repeat;
	height: 17px;
	width: 17px;
}
/* end: btn_last */

/* btn_next */
.btn_next {
	
	margin-right: -10px;
	display: inline;
	clear: both;
	float: right;
	background-image: url(https://www.afcd.gov.hk/css/hkbo/next.gif);
	background-repeat: no-repeat;
	height: 17px;
	width: 17px;
}
.btn_next:hover {
	background-image: url(https://www.afcd.gov.hk/css/hkbo/next_hover.gif);
	background-repeat: no-repeat;
	height: 17px;
	width: 17px;
}
/* end: btn_next */

/* btn_back */
.btn_back {
	margin-right: -4px;
	display: inline;
	clear: both;
	float: right;
	background-image: url(https://www.afcd.gov.hk/css/hkbo/back.gif);
	background-repeat: no-repeat;
	height: 17px;
	width: 17px;
}
.btn_back:hover {
	background-image: url(https://www.afcd.gov.hk/css/hkbo/back_hover.gif);
	background-repeat: no-repeat;
	height: 17px;
	width: 17px;
}
/* end: btn_back */

/* btn 1 */
.btn_1 {
	/*background: #d34254;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-radius: 0px;
	font-family: Microsoft JhengHei;
	color: #ffffff;
	font-size: 10px;
	display: block;
	clear: both;
	display: block;
	float: right;*/
	text-decoration: none;
	padding-top: 2px;
	padding-right: 5px;
	padding-bottom: 2px;
	padding-left: 5px;
	
	right: 6px;
    bottom: 7px;
    position: absolute;
}
a.btn_1:link{
	background-color: #9ec73c;
	color: #ffffff;
	top: 0px;
	height: 25px;
}
.btn_1:hover {
	background: #3e5469;
	text-decoration: none;
}
/* end: :  btn 1 */
/* btn 2 */
.btn_2 {
	background: #fab72a;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-radius: 0px;
	/*font-family: Microsoft JhengHei;*/
	color: #2a2929;
	font-size: 12px;
	text-decoration: none;
	display: inner;
	clear: both;
	font-weight: bold;
	vertical-align: middle;
	float: left;
	padding-top: 4px;
	padding-right: 8px;
	padding-bottom: 4px;
	padding-left: 8px;
}
.btn_2:hover {
	background: #fab72a;
	text-decoration: none;
}
/* end: : btn 2 */
/* cbtn 3 */
.btn_3 {
	background: #a1c271;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-radius: 0px;
	/*font-family: Microsoft JhengHei;*/
	color: #2a2929;
	font-size: 12px;
	text-decoration: none;
	float: right;
	margin-left: 2px;
	font-weight: bold;
	display: inline;
	padding-top: 4px;
	padding-right: 6px;
	padding-bottom: 4px;
	padding-left: 6px;
}
.btn_3:hover {
/*	background: #a1c271;
	text-decoration: none;
	color: #000;*/
}
/* end: : btn 3 */
/* btn 4 */
.btn_4 {
	background: #ffffff;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-radius: 2px;
	/*font-family: Microsoft JhengHei;*/
	color: #2a2929;
	font-size: 10px;
	padding: 13px 10px 13px 10px;
	text-decoration: none;
}
.btn_4:hover {
	background: #3e5469;
	text-decoration: none;
	color: #ffffff;
}
.btn_4:active {
	background: #3e5469;
	text-decoration: none;
	color: #ffffff;
}
/* end: : btn 4 */
/* placeholder */
.placeholder_container {
	font: normal 12px/150%;
	background: #fff;
	overflow: hidden;
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;
	border-radius: 0px;
	display: block;
}
.placeholder_container table {
	clear: both;
	width: 586px;
	background-color: #f7f4ed;
	padding-top: 10px;
	padding-bottom: 10px;
}
.placeholder_container table td {
	padding-left: 0px;
    vertical-align: top;
}
.placeholder {
	display: block;
	clear: both;
	float: left;
	background-image: url(https://www.afcd.gov.hk/images/hkbo/placeholder.png);
	background-repeat: no-repeat;
	/*height: 210px;*/
	width: 100%;
	color: #1d5d7d;
	padding-left: 7px;
	margin-bottom: 0px;
}
.placeholder p {
	margin: 0px;
	padding-top: 5px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
    /*height: 72px;*/
}

.placeholder p input{
	float: left;
    display: inline-block;
}

.placeholder p a{
	/*float: left;*/
    display: inline-block;
   /* width: 155px;*/
}

.datagrid .placeholder img {
	    max-width: 280px!important;
}
.placeholder img {
    width: auto;
    height: 160px;
	/*display: block;
	clear: both;
	float: left;
	padding-top: 5px;
	
	padding-bottom: 5px;
	padding-left: 2px;*/
}

.placeholder_horizontal img {
    width: auto;
    height: auto;
}

/* end: placeholder */
/* sortable */
.sortable_up {
	background-image: url(https://www.afcd.gov.hk/images/hkbo/sortable_up.gif);
	background-repeat: no-repeat;
	height: 8px;
    width: 13px;
	vertical-align: middle;
	background-position: center;
	padding-bottom: 4px;
    float:left;
	display: block;
    clear:both;
    cursor:hand;
}
.sortable_up:hover, .sortable_up_active {
	background-image: url(https://www.afcd.gov.hk/images/hkbo/sortable_up_hover.gif);
	background-repeat: no-repeat;
	height: 8px;
    width: 13px;
	vertical-align: middle;
	background-position: center;
	padding-bottom: 4px;
    float:left;
	display: block;
    clear:both;
    cursor:hand;
}
.sortable_down {
	background-image: url(https://www.afcd.gov.hk/images/hkbo/sortable_down.gif);
	background-repeat: no-repeat;
	height: 8px;
    width: 13px;
	vertical-align: middle;
	background-position: center;
	padding-top: 15px;
    float:left;
	display: block;
    clear:both;
    cursor:hand;
}
.sortable_down:hover , .sortable_down_active{
	background-image: url(https://www.afcd.gov.hk/images/hkbo/sortable_down_hover.gif);
	background-repeat: no-repeat;
	height: 8px;
    width: 13px;
	vertical-align: middle;
	background-position: center;
	padding-top: 15px;
    float:left;
	display: block;
    clear:both;
    cursor:hand;
}
/* end: sortable */

















/* database */
.database tbody td span.heading {
	color: #222222;
	/*font-size: 10px;*/
	display: block;
	clear: both;
	padding-top: 12px;
}
.database tbody td span.sub_heading {
	color: #636363;
	/*font-size: 10px;*/
	display: block;
	clear: both;
	padding-bottom: 9px;
}
.first_column{
	background-color: #146734;
	color: #FFF;
	/*font-size: 12px;*/
	font-weight: bold;
	width:25%;
}
.first_column a{
	color: #FFF;
}
 
.database td > input[type="text"] {
	width:70%!important;	 
}

.database td {
	border-collapse: collapse;
	text-align: left;
	border: 1px solid #E4E4E4;
	padding: 6px;
}
.database td td {
	border-collapse: collapse;
	text-align: left;
	border: 0px solid #fff;
	padding: 6px;
}
/* end: : table_02 */

/* end of default  : table_02 */
/* table_01 */
#paging {
	/*width: 586px;*/
	height: 30px;
	display: block;
}
.list_view_paging {
	/*background: #fff;*/
	overflow: hidden;
	/*width: 526px;*/
	height: 30px;
	display: block;
}
.list_view_paging table {
	border-collapse: collapse;
	text-align: left;
	width: 586px;
}
.list_view_paging table tfoot td ul {
	list-style: none;
	text-align: right;
	display: block;
	height: 30px;
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 0;
	padding-right: 0;
	padding-bottom: 0;
	padding-left: 0;
}
.list_view_paging table tfoot li {
	display: inline-block;
	text-decoration: none;
	height: 12px;
	width: 15px;
	vertical-align: top;
	text-align: center;
	padding-top: 3px;
	padding-left: 4px;
	text-indent: 2px;
	margin-top: 2px;
}
.list_view_paging table tfoot li:hover {

	background-repeat: no-repeat;
	height: 12px;
	width: 15px;
	background-position: 0px -1px;
}
.list_view_paging table tfoot li a {
		color:#5d5d5d;
	text-decoration: none;
	display: inline-block;

	float:right
}
.list_view_paging table tfoot li a:hover {
	color: #e43030;
}
.list_view_paging table tfoot li a.active {
	color: #265b0d;
	font-weight: bold;
    text-decoration: none;
    display: inline-block;
    /*color: #FFFFFF;
    background-color: #3e5469;*/
    float: right;
}
.datagrid table {
	font: normal 12px/150%;
	/*	background: #fff;*/
	/*	overflow: hidden;	width: 526px;*/
}
.list_view_paging {
	clear: none;
	/*width: 586px;*/
	display: block;
	text-align: left;
}
.list_view_paging table tfoot ul.active, .datagrid table tfoot ul a:hover {
	text-decoration: none;
	border-color: #E4E4E4;
	color: #FFFFFF;
	background: none;
}
div.dhtmlx_window_active, div.dhx_modal_cover_dv {
	position: fixed !important;
}
.list_view table {
	border-collapse: collapse;
	text-align: left;
	width: 586px;
	border-right-width: 1px;
	border-left-width: 1px;
	border-right-style: solid;
	border-left-style: solid;
	border-right-color: #e4e4e4;
	border-left-color: #e4e4e4;
	margin-bottom: 6px;
}
.datagrid{
	/*width: 586px;*/
	width: 100%;
}
.container{
	/*width: 586px;*/
	width: 100%;
	margin-right: auto;
	margin-left: auto;
}
.list_view {
	font: normal 12px/150%;
	background: #fff;
	overflow: hidden;
	width: 100%;
	margin-right: auto;
	margin-left: auto;
}
.list_view table td, .datagrid table th {
	padding-top: 3px;
	padding-bottom: 3px;
	padding-left: 4px;
}
.list_view table thead th {
	background-color: #146734;
	color: #FFF;
	font-size: 12px;
	font-weight: bold;
	border-left: 1px solid #E4E4E4;
	height: 39px;
	vertical-align: middle;
	padding-left: 10px;
}
.list_view table thead th:first-child {
	border: 1px;
	padding-left: 10px;
}
.list_view table tbody td {
	height:80px;
	color: #4b4b4b;
	font-weight: normal;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-bottom-style: solid;
	border-left-style: solid;
	border-bottom-color: #E4E4E4;
	border-left-color: #E4E4E4;
	vertical-align: top;
	border-right-width: 1px;
	border-right-style: solid;
	border-right-color: #E4E4E4;
	padding-top: 9px;
	padding-bottom: 9px;
}
.list_view table tbody .alt td {
	background: #F0F9E4;
	color: #4b4b4b;
}
.list_view table tbody td:first-child {
	border-left: none;
	/*height: 138px;*/
}
.list_view table tbody tr:last-child td {
	border-bottom: none;
}
/*Checkboxes styles*/

/*end: .input{*/
/*table_01{*/
.list_view table tfoot td div {
	background: #FFFFFF;
}
.list_view table tfoot td {
	padding: 0;
	font-size: 12px
}
.list_view table tfoot td div {
	padding: 2px;
}
.list_view table tfoot td ul {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: right;
}
.list_view table tfoot li {
	display: inline;
}
.list_view table tfoot li a {
	text-decoration: none;
	display: inline-block;
	padding: 2px 8px;
	margin: 1px;
	color: #000000;
	background: -webkit-gradient( linear, left top, left bottom, color-stop(0.05, #FFFFFF), color-stop(1, #FFFFFF) );
	background: -moz-linear-gradient( center top, #FFFFFF 5%, #FFFFFF 100% );
 filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#FFFFFF');
	background-color: #FFFFFF;
}
.list_view table tfoot ul.active, .datagrid table tfoot ul a:hover {
	text-decoration: none;
	border-color: #E4E4E4;
	color: #FFFFFF;
	background: none;/*	background-color: #00557F;*/
}
div.dhtmlx_window_active, div.dhx_modal_cover_dv {
	position: fixed !important;
}
/* end: : table_01 */

/* table_02 */
.grib_view table tbody td img {
	display: block;
	clear: both;
	margin: 0px;
	padding: 0px;
	height: auto;
	/*width: 145px;*/
}
.grib_view table tbody td span.heading {
	color: #222222;
	/*font-size: 10px;*/
	display: block;
	clear: both;
	padding-top: 12px;
}
.grib_view table tbody td span.sub_heading {
	color: #636363;
	/*font-size: 10px;*/
	display: block;
	clear: both;
	padding-bottom: 9px;
    height: 25px;
}
.grib_view table {
	border-collapse: collapse;
	text-align: left;
	width: 100%;
}
.grib_view {
	font: normal 12px/150%;
	background: #fff;
	overflow: hidden;
	border: 1px solid #E4E4E4;
	/*clear: both;*/
	width: 100%;
	display: block;
}
.grib_view table td, .datagrid table th {
	padding: 3px 10px;
}
.grib_view table thead th {
	color: #2C3C17;
	font-size: 15px;
	font-weight: bold;
	border-left: 1px solid #E4E4E4;
	height: 39px;
	vertical-align: middle;
	padding-left: 10px;
}
.grib_view table thead th:first-child {
	border: 1px;
}
.grib_view table tbody td {
	color: #636363;
	font-weight: normal;
	padding: 5px;
	text-align: left;
	vertical-align: top;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-bottom-style: solid;
	border-left-style: solid;
	border-bottom-color: #E4E4E4;
	border-left-color: #E4E4E4;
	height: auto;
}
.grib_view table tbody .alt td {
	color: #4b4b4b;
}
.grib_view table tbody td:first-child {
	color: #FFF;
	background-color: #146734;
	border-left: none;
    font-weight: bold;
	/*height: 138px;*/
}
.grib_view table tbody .alt td p:first-child{
	    margin-top: 0px;
}

.grib_view table tbody tr:last-child td {
	border-bottom: none;
}
.grib_view table tbody tr td ul {
	margin: 0px;
	margin-left: 16px;
	padding: 0px;
}
.grib_view table tfoot td div {
	border-top: 1px solid #E4E4E4;
	background: #FFFFFF;
}
.grib_view table tfoot td {
	padding: 0;
}
.grib_view table tfoot td div {
	padding: 2px;
}
.grib_view table tfoot td ul {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: right;
}
.grib_view table tfoot li {
	display: inline;
}
.grib_view table tfoot li a {
	text-decoration: none;
	display: inline-block;
	padding: 2px 8px;
	margin: 1px;
	color: #000000;
	background: -webkit-gradient( linear, left top, left bottom, color-stop(0.05, #FFFFFF), color-stop(1, #FFFFFF) );
	background: -moz-linear-gradient( center top, #FFFFFF 5%, #FFFFFF 100% );
 filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#FFFFFF');
	background-color: #FFFFFF;
}
.grib_view table tfoot ul.active, .datagrid table tfoot ul a:hover {
	text-decoration: none;
	border-color: #E4E4E4;
	color: #FFFFFF;
	background: none;
}
div.dhtmlx_window_active, div.dhx_modal_cover_dv {
	position: fixed !important;
}
/* end: : table_02 */
/* remarks */
.remarks {
	color: #eb1d1d;
	display: block;
	text-align: right;
	font-size: 10px;
	background-repeat: no-repeat;
	background-position: 0px 0px;
	clear: both;
	width: 586px;
	display: block;
}
/* end: remarks */

/* thumbnail */
img.thumbnail {
	display: block;
    margin: auto;
	vertical-align:middle;
/*   min-width: 120px;
    max-width: 120px;
    min-height: 80px;*/

     /* max-width: 120px;
   min-height: 100px;*/
	
   
}
/* end: thumbnail */

/* thumbnail */
img.thumbnail_grid {
	vertical-align:middle;
    width: 172px;
    height: 118px;
}
/* end: thumbnail_grid */

/* image_not_found */
img.image_not_found {
	vertical-align:middle;
    width: 50px;
    height: 55px;
    min-width: 50px;
    min-height: 55px;
}
/* end: image_not_found */

/* image_not_found */
img.image_not_found_grid {
	/*vertical-align:middle; 
    width: 168px;*/
	padding-left: 2px;
}
/* end: image_not_found */

@media (max-width: 768px) {
	
  .first_column { 
	 width:100%;
  }
  
  .database td{
	  
	  display:block;
  }
	.database td > input[type="text"] {
		width:100%!important;	 
	}
	
	.list_view {
		overflow: scroll;
	 
	}
	
	.grib_view {
		overflow: scroll;
	}
}


.database label{ 
	display:inline!important;
}

.database .all{
	margin-left:5%
}

