@charset "utf-8";
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td { margin: 0; padding: 0;}
address, caption, cite, code, dfn, em, strong, var { font-style: normal; font-weight: normal;}
table { border-collapse: collapse; border-spacing: 0;}
fieldset, img { border: 0; padding: 0; margin: 0;}
ol, ul { list-style: none; }

body { margin: 0 25px; background: #EEEADF url(../images/bg.jpg); font-size: 15px; 
font-family: "Verdana", "文泉驛正黑", "WenQuanYi Zen Hei", "儷黑 Pro", "LiHei Pro", "\5FAE\8EDF\6B63\9ED1\9AD4", "Microsoft JhengHei", "標楷體", "DFKai-SB", "sans-serif"; line-height: 1.5; color: #4B4B4B; }

a:link, a:visited, a:active { color: #4B4B4B; text-decoration: none;}
a:hover { color: #e48413; text-decoration: none;}
a.edit:link, a.edit:visited, a.edit:active { display: block inline; padding: 3px 8px; color: #FFF; background: #88bb77; border-radius: 5px; }
a.edit:hover { color: #FFF; background: #228B22; }
br.clear{ clear: both; }

/*首頁*/
#wrapper_index { width: 600px; height: 150px; position:absolute; left: 50%; top: 50%; margin: -125px 0 0 -300px; text-align: center; background: #FFF; border-radius: 10px; padding:5px; }
	#wrapper_index .index_logo { font-weight: bold; font-size: 24px; padding: 10px 0 15px 0; }
	#wrapper { min-width: 1150px; width: auto !important; width: 1150px; padding: 0; margin: 5px auto; background: #FFF; border-radius: 5px; }

/*上方*/
#top { font-weight: bold; background: #EEEADF url(../images/bg.jpg); }
	#top .top_logo { padding: 5px; float: left; font-size: 24px; }
	#top .top_btn  { float: right; margin: 12px 0 0 0; }
	#top .top_btn a{ display: block inline; margin-left: 5px; padding: 2px 8px; background: #FFF; border: 1px #FFF solid; border-radius: 5px; }
	#top .top_btn li { display: inline; }

/*左上方選單*/
#top_left{ min-width: 225px; width: 19%; position: fixed; top: -65px; padding: 15px 0 0 13px; }
	#top_left .top_btn  { float: left; margin: 0; }
	#top_left .top_btn a{ display: block inline; margin: 0 0 0 0; padding: 2px 4px; background: #D2B48C; border: 1px #D2B48C solid; border-radius: 5px; }
	#top_left .top_btn a:hover{ color: #4B4B4B; border: 1px #4B4B4B solid; }
	#top_left .top_btn li { display: inline; }

/*中間*/
#main { margin: 5px auto; padding: 0; background: #EEEADF url(../images/bg.jpg); }
#center { padding: 5px; background: #FFF; border-radius: 5px; }

/*左邊選單*/
#left { float:left; padding: 0px 5px; width: 18%; }
	#menu { position: fixed; min-width: 222px; width: 18%; padding: 0 2px; }
		/*選單數量少時*/
		/*#menu ul { background: #FFF; margin: 0 0 10px 0; }
		#menu li a { display: block; margin-top: 1px; padding: 5px 8px; border: 1px #EEEADF solid; border-left: 5px #EEEADF solid; }
		#menu li a:hover, #menu li.stay { color: #4B4B4B; background: #EEEADF; }
		#menu li a.menu_title { display: block; font-weight: bold; padding: 5px 8px; line-height: 2; background: #EEEADF url(../images/bg.jpg); border-left: 5px #D2B48C solid; border-radius: 2px; }*/
		/*選單數量多時*/
		/*#menu ul { position:relative; }
		#menu ul li { position:relative; padding: 5px 8px; margin: 0 0 5px 0; line-height: 2; background: #EEEADF url(../images/bg.jpg); border-left: 5px #D2B48C solid; border-radius: 2px; }
		#menu ul li:hover, #menu ul li li.stay { color: #4B4B4B; background: #E0DAC5; }
		#menu ul li a { display:block; }
		#menu ul li a:hover, #menu ul li.stay a { color: #4B4B4B; background: #E0DAC5; }
		#menu ul li ul { position:absolute; z-index:9999; width: 222px; height:auto; top:0; left:200px; padding:5px 7px; border: 1px #E0DAC5 solid; background: #FFF; border-radius:5px; }
		#menu ul li ul { display: none; } 
		#menu ul li:hover ul, #menu ul li a:hover ul { display:block; }*/

/*右側內容*/
#right { float: right; width: 78%; margin: 0 5px; padding: 8px 5px; }
	h1 { font-size: 22px; width: 35%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
	/*導覽*/
	#nav { float: right; text-align: right; margin-top: -27px; width: 64%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
	
	/*搜尋*/
	#search { margin: 10px 0; height: 30px;  }
	#search input[type="text"] { width: 300px; }

	/*新增資料 */
	#new { float: right; margin-top: 3px; }
	#new a, #new span { display: block inline; margin-left: 6px; padding: 3px 8px; color: #FFF; background: #0075c2; border-radius: 5px; }
	#new a:hover { background: #23a8ff; }
	#new span { color: #FFF; background: #c1697e; }
	
	/*刪除*/
	#delete { margin: 15px 0 10px 0; height: 30px; }
	
	/*分頁*/
	#page { margin: -35px 0 10px 10px; }
		#page #num  { margin-left: 90px; text-align: center; width: 65%; }
		#page a { display: block inline; margin: 0; padding: 2px 9px; background: #FFF; border: 1px solid rgba(0, 0, 0, .2); border-radius: 2px; }
		#page a:hover, #page a.stay { color: #FFF; background: #c1697e; }
		#page #statistics { float: right; margin-top: -25px; }

	/*列表*/	
	.List_form { margin-top:10px; width:100%; border-top:1px #CCC solid; border-left:1px #CCC solid; }
		.List_form table { border:1px; width:100%; }	
		.List_form th { padding: 6px 3px; font-weight:bold; background:#EEEEEE; border-right:1px #CCC solid; border-bottom:3px #CCC double; }
		.List_form td { padding: 6px 3px; border-right:1px #CCC solid; border-bottom:1px #CCC solid; }
		.List_form td a { color:#0075c2; }
		.List_form td a:hover { color:#23a8ff; }
		.List_form th a.edit, .List_form td a.edit { display: block inline; padding: 3px 8px; color: #FFF; background: #88bb77; border-radius: 5px; }
		.List_form th a.edit:hover { color: #FFF; }
		.List_form td a.edit:hover { color: #FFF; background: #228B22; }
		.List_form td:last-child { text-align:center; }
		.List_form img { width: 80px; border-radius: 2px; }

	/*新增編輯檢視*/	
	.Edit_form { margin-top:20px; width:100%; border-top:1px #CCC solid; border-left:1px #CCC solid; }
		.Edit_form table { border: 1px; width:100%; }	
		.Edit_form th { width: 180px; padding: 6px 3px; font-weight:bold; text-align:left; border-right:3px #CCC double; border-bottom:1px #CCC solid; }
		.Edit_form td { padding: 6px 3px; border-right:1px #CCC solid; border-bottom:1px #CCC solid; }
		.Edit_form .Coffee { font-size:17px; text-align:center; font-weight:bold; background: #CCC; /*background: #EEEADF;*/ }
		.Edit_form input[type="radio"] { margin: 0 5px; }
		.Edit_Center { margin-top: 10px; text-align:center; }

	/*檔案*/
	.File_form { border: 0; margin-bottom: 6px;  }
		.File_form table { border: 0; width:100%;}	
		.File_form td { padding: 6px 3px; border: 0; border-bottom: 1px dashed rgba(0, 0, 0, .2); }
		.File_form td:first-child { width: 5%; text-align: center; font-weight:normal; border-bottom: 1px dashed rgba(0, 0, 0, .2);  }
		.File_form input[type="text"], .File_form input[type="file"] { min-width: 420px; width: 80%; margin-top: 5px; border-radius: 2px; }
		.File_form th { width: 15%; padding:3px; text-align:center; background: #FFF; border: 0; border-bottom: 1px dashed rgba(0, 0, 0, .2); }
		.File_form img { max-width: 80px; max-height: 80px; border-radius: 2px; }
		/*.File_form img.download { width: 22px; border-radius: 1px; }*/

	/*其他表格-有框線*/
	.Border_form { }
		.Border_form table { border: 1px; width:100%; }	
		.Border_form td { padding:3px; border:1px #CCC solid; }
		.Border_form td.Title { text-align: center; font-weight: bold; background: #EEEEEE; }

	/*其他表格-無框線*/
	.None_form { border: 0; }
		.None_form table { border: 0; width: 100%; }
		.None_form td { padding: 6px 3px; border: 0; }

	/*按鈕*/
	.btn { margin-top: 15px; text-align: center; }

/*底部*/
#footer { margin: 0 0 15px 0; padding: 10px; text-align: center; }
	#footer a { background: #333; padding: 0 10px 5px 10px; border-radius: 5px; }

#gotop { display: block; position: fixed; bottom: 5px; right: 5px; padding: 5px 10px; border: 1px #D2B48C solid; background: #D2B48C; border-radius: 5px; }
#gotop:hover{ color: #4B4B4B; border: 1px #4B4B4B solid; }

html, body, #wrapper { height: 96%; }
body > #wrapper { height: auto; min-height: 100%; }
#main {	padding-bottom: 0px; }
#footer { position: relative; margin-top: -5px; height: 5px; clear: both; }

clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.clearfix { display: inline-block; }
/* Hides from IE-mac \*/
* html .clearfix { height: 1%; }
.clearfix { display: block; }
/* End hide from IE-mac */

/*debug*/
#debug { width: 99%; margin: 10px; background: #FFF; padding:5px; }
#debug h1 { margin: 30px 0 10px 0; }

/*表單*/
input[type="text"], input[type="password"], input[type="file"], select, textarea, .text { margin-right: 3px; padding: 4px 5px; font-size: 15px; color:#4B4B4B; background:rgba(255,255,255,.45); border:1px solid rgba(75,75,75,.5); border-radius: 5px; }
textarea { width: 98%; height: 184px; resize:none; }
select { padding: 3px; }
input[type="checkbox"] { font-size: 15px; margin: 0 3px; background:rgba(255,255,255,.45); border:1px solid rgba(75,75,75,.2); border-radius: 3px; }
.fill  { width: 98%; }

input[type="submit"], input[type="reset"], input[type="button"] {
	color: #4B4B4B;
	font-size: 15px;
	height: 28px;
	line-height: 28px;
	padding: 0 12px;
	cursor: pointer;
	border:1px solid rgba(75,75,75,.5);
	border-radius: 5px;
	box-shadow: 1px 1px 3px rgba(0,0,0, .2);
	-moz-box-shadow: 1px 1px 3px rgba(0,0,0, .2);
	-webkit-box-shadow: 1px 1px 3px rgba(0,0,0, .2);
}

input[type="submit"]:hover, input[type="reset"]:hover, input[type="button"]:hover {
	color: #4B4B4B;
	background: #E0DAC5;
	border: 1px solid #4B4B4B;
}

/*文字*/
.star		 { font-weight: bold; font-size: 17px; color: #0075C2; }
.font_bold   { font-weight: bold; }
.font_red    { font-weight: bold; color: #E3170D; }
.font_pink   { font-weight: bold; color: #B03060; }
.font_orange { font-weight: bold; color: #CC6600; }
.font_green  { font-weight: bold; color: #228B22; }
.font_blue   { font-weight: bold; color: #33A1C9; }
.font_indigo { font-weight: bold; color: #191970; }
.font_purple { font-weight: bold; color: #9933FA; }
.font_gray   { font-weight: bold; color: #808A87; }
.font_brown  { font-weight: bold; color: #5E2612; }

@media screen and (max-width: 1150px) {	/*1150以下*/
	#gotop { width: 30px; left: 5px; }
	#top_left{ display: none; }
	#left #menu{ position: absolute; }
}
@media screen and (min-width: 1300px){	/*1300以上*/
	#right { width: 78.5%; }
}
@media screen and (min-width: 1400px){	/*1400以上*/
	#right { width: 79%; }
}