html{
	font-size: 16px;
}



body{

	font-family:"Microsoft JhengHei";
	font-size: 16px;
	line-height: 1.5;
	/*background-color: #e7e2cf;*/
	
}

*{
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}




.clearfix:after{
	content: "";
	display: table;
	clear: both;
}


.mform img{
	display: inline-block;
	Height:2.375em;
	vertical-align: bottom;	
	

}


ul{
	list-style-type:none; 
	display: inline-block;
	padding-left: 0px;
	margin: 0;
}

ul.menu li{
	float:left;

}

ul#welcome li{
	float:left;

}


h3{
	color:#0d9cfd;
	font-size: 1.07rem;
}

.row:after{
	content: "";
	display: table;
	clear: both;
}

.container{
	max-width: 1170px;
	/*background-color: #d7ecf3;*/
	display: block;
	margin: 0px auto;
}


#header{

}


#header a{
	text-decoration: none;
	font-size: 1.1rem;
	color: #070707;
	/*color: #333;*/
}


#header a:hover{
	color:#FFF;
}


#header > .container{
	background-color: #fff;	/* 2026-10-13 same as index.css (was #d7ecf3, showed as a blue band) */
	background-image: url(/img/ioh44.png);
	opacity: 1;
	background-size: contain;
	background-position: 50% 50%; 
	background-repeat: no-repeat;
 	width: 100%;
    z-index: 888;
  	/*overflow: hidden;		*/
  	overflow:visible;
	padding-right: 0;
    padding-left: 0;
}


#banner{
	float:left;	
}



#banner img{
	display: block;

}


#welcome{
	float:right;
	text-transform: uppercase;
	font-size: 1rem;
	margin-right: 30px;
	background: rgba(0, 0, 0, 0.5);
	margin-right: 50px;
	/*letter-spacing: 2px;*/
	font-weight: bold;
	color:#FFF;

}

#welcome a {
/*	padding: 0px 30px;*/
	/*letter-spacing: 2px;*/
	font-weight: bold;
	color:#FFF;

}

#welcome a:hover {
	color: #d6b161;
	background-color: rgba(0, 0, 0, 1);

}

.hpath{
  	background-color: #fff;
  	opacity: 0.8;

}

#mpath{
	float:left;
	position:relative;
	padding: 5px 20px 5px 20px;
	color: #5d5d5d;
}

#mpath a{
	color: #5d5d5d;	
}

#mpath a:hover {
	color: #070707;
}




#imenu{
	/*border: 2px solid #2a9cc8;*/
	border: 2px solid;
	position:absolute; 
	right:10px;
	padding:1px;
	display:none;
}

#path{
	float:right;
	position: relative;
	padding: 5px 20px 5px 20px;	
	display: block;
	background-color: #fff;
  	opacity: 0.8;	
}

#path.show{
		display: block;
}


#path .menu li {
	content:"";
	padding:0px 5px;
	color: #5d5d5d;
    cursor: pointer;
}



#path .menu .mfirst ul{
	display: none;
	width:150px;
	position: absolute;
	transform: translate(0,15%);
	background-color: #a0a0a0;
	opacity:0.8;
	z-index: 999;
	color: #5d5d5d;

}



#path .menu .mfirst ul :hover{
	color:#FFF;
}




.msg{
	background-color: white;
	width:90%;
	margin: 0 auto;		
}


.btn{
	display: inline-block;
	position: relative;
	left:50%;
	transform: translate(-50%,0);
	margin-top:10px;
}

#content{
/*	margin-top: 180px;
	margin-bottom: 40px;*/

}

#content > .container > div{
	padding: 0px 0px 0px 0px;
}

.title{
	border-bottom: 2px solid #2a9cc8;
	color:#0d9cfd;
	font-size: 1.2rem;	
	font-weight: bold;
	padding: 20px 0;
	width:90%;
	margin: 0 auto;
	/*text-align: center;*/

 }

.tab {
	width:90%;
	margin:0 auto;
}


.tab li {
  padding: 10px;
  margin-right: 10px;
  background-color: #ccc;
  cursor: pointer;
  color: white;
  font-size: 1rem;
}


.tab li.active {
  background-color: #333;
  font-size: 1rem;
  color: #0d9cfd;  
}





.table {
	display: table;
	width: 100%;
   	 margin: 0 0 50px 0;
   	 border-collapse: collapse;	
}

.table-tr {
	display: table-row;
	height: 30px;
}

.table-th {
	display: table-cell;
	height: 100%;

}

.table-td {
	display: table-cell;
	height: 100%;
}


.sub-table {
	width: 100%;
	height: 100%;
	display: table;
}
.sub-table-tr {
	display: table-row;
	height: 100%;
}
.sub-table-th {
	display: table-cell;
	height: 100%;
	background-color: #e9e6e6;
	border: 1px solid #d6ebf2;
	text-align: center;
	padding:5px 0;
}
.sub-table-td {
	display: table-cell;
	height: 100%;
	border: 1px solid #d6ebf2;
	padding:5px 0;
}


.table a{
	text-decoration: none;
	color: #7e7e7e;
	font-size: 1em;
}

.table a:hover{
	color : #2a9cc8;
}



 
.rows{
/*	width:50%;
	margin: 0 auto;	*/
}

.boundary:after {
    content: "/";
    padding: 0px 10px;
    color: #d6b161;
}


.row{
	padding:10px;
}

.col-3{
	float:left;
	width:25%;
	font-weight:bold;
	letter-spacing:2px;
	/*padding-left: 5%;*/
	font-size: 1.07em;
}

input[type="text"] ,input[type="password"],button {
		height: 2.375em;
}

.col-9{
	float:left;
	width:75%;

}

.col-12{
	/*text-align: center;*/

}



.conclusion{
	background-color: #e9e6e6;
	border-radius: 0px 0px 10px 10px;
	padding:20px;	
}

.mform ul{
	list-style-type: disc ;
	padding-left: 20px;
}


.dform {
  display: none;
}

.dform.active {
  display: block;
}


.mnav{
/*	background-color: #e9e6e6;
	border-radius: 0px 0px 10px 10px;		
*/
}


.mnav table{
	display: inline-block;
	position: relative;
/*	top:0;
	transform: translate(0,40%);*/
	left:50%;
	transform: translate(-50%,0);		
	border:none;
}

.mnav td {
    border:0px solid black;
}
}


.mnav select{
	height: 2.375em;
	margin: 5px 0;
}

.mnav button {
	/*background-color: #008CBA;*/

	height: 2.375em;	  
    border: none;
   	padding: 10px 10px;
    text-align: center;
    text-decoration: none;
	cursor: pointer;
    /*color: white;*/
    /*color: #0d9cfd;*/
    font-size: 1.07rem;
}



#footer{
	/*position: relative;*/
}

#footer .container{
	background-color: #f7fbfc;	/* 2026-10-13 same as index.css */
    z-index: 888;
    padding: 10px 0;
    color: #7e7e7e;	
}


#footer ul{
	list-style-type:none; 
	display: inline-block;
	padding-left: 0px;
	position: relative;
	margin:0px;
	left:50%;
	transform: translate(-50%,0);
}


#footer li{
	float:left;
	padding: 0 0;
}


#footer .boundary:after {
    content: "|";
    padding: 10px;
}


#footer a{
	text-decoration: none;
	color: #7e7e7e;
	font-size: 1em;
}


#footer a:hover{
	color:#2a9cc8;
}



#go-top{
	 position: fixed;
     right: 50px;
     bottom: 30px;
     width: 30px;
     height: 30px;
     font-size: 1.2rem;
     /*background: #333;     */
     background: rgba(0, 3, 51, 0.25);
     color: #f5f5f5;
     cursor: pointer;
     z-index: 1000;

}


@media (max-width: 1170px){
	.container{
		max-width: 900px;

	}


	#header{
		/*background-image: none;	*/
		position: relative;
		-webkit-background-size: auto;
		background-size: auto;
	}


	#mpath{
		width:100%;
	}

	#imenu{
		display:inline-block;
	}

	#path{
		width:100%;
		display: none;
	}

	#content{
		margin-top: 20px;
		margin-bottom:20px;
	}

	#footer{
		background-image: none;
		background-color: transparent;
	}

	.tab {
		width:100%;
	}	

	.table {
		width:100%;
	}		


	/* 下面的css使input的寬度不會超過div */
	input[type="text"] {
  		display:inline-block;
  		/*width:100%;*/
	}
	.col-3{
		padding-left: 0px;
	}	

}

@media (max-width: 900px){
	.container{
		max-width: 600px;

	}
}


@media (max-width: 600px){
	.container{
		max-width: 320px;

	}

	#banner img{
	display: block;
	width:100%;
	height: auto;
	}


	#header{
		position: relative;
		-webkit-background-size: auto;
		background-size: auto;
	}


	#mpath{
		width:100%;
	}

	#imenu{
		display:inline-block;
	}

	#path{
		width:100%;
		display: none;
	}

	.tab {
		width:100%;
	}	

	.table {
		width:100%;
	}	

	#content{
		margin-top: 20px;
		margin-bottom:20px;
	}


	#footer{
		background-image: none;
		background-color: transparent;
	}

	.footer .boundary:after {
    	content: "";
    	padding: 0px;
	}		

	.footer .col-12{
		text-align: center;
	}

	#footer li{
		width:100%;
		text-align: center;
	}


	/* 下面的css使input的寬度不會超過div */
	input[type="text"] {
  		display:inline-block;
  		width:100%;
	}

	.mform img {
		display: inline-block;
		vertical-align: bottom;
		Height:auto;
		width:100%;
	}
	
	.col-3{
		width:100%;
		text-align: left;
		background-color: #d7ecf3;
	}	
	.col-9{
		width:100%;
		text-align: left;
	}

	

}/* 日期選擇器背景與層級優化 */
.ui-datepicker { background-color: #ffffff !important; border: 1px solid #cccccc !important; box-shadow: 0 2px 10px rgba(0,0,0,0.2); z-index: 9999 !important; }
.ui-datepicker-header { background: #f0f0f0 !important; }
.ui-datepicker-calendar { background-color: #ffffff !important; }

/* 2026-10-13 same as index/forgot/changepwd: banner 192px (original index size), path bar moved out of the banner
   container in regapplyL.htm and overlaid on the banner bottom like inext.php; desktop only */
@media (min-width: 1171px){
	#header > .container{ min-height: 192px; }
	#header > .hpath{ position: relative; margin-top: -54px; }
}

/* 2026-10-23 home look for the register form (regapply.htm, also used by confirm.php).
   Rows = soft-blue label + white field, only row separators; rounded inputs; notice row as an info bar. */
.mform .table{ margin: 6px 0 14px; border-collapse: separate; }
.mform .sub-table-th, .mform .sub-table-td{ border: 0; border-bottom: 1px solid var(--hc-line, #d6e6f2); padding: 12px 16px; vertical-align: middle; }
.mform .sub-table-th.th-label{ background: #f3f8fe; color: var(--hc-fg, #101d2e); font-weight: bold; text-align: right; white-space: nowrap; }
.mform .sub-table-td{ background: #fff; }
.mform .table-tr:first-child .sub-table-th{ background: var(--hc-soft, #e3f3fd); color: var(--hc-brand, #0349a7); font-weight: bold; text-align: left; border: 0; border-radius: 10px; padding: 12px 16px; }
.mform .sub-table-th.th-full{ background: #fff; text-align: left; line-height: 1.8; padding: 14px 16px; }	/* full-width rows: PDPA notice etc. (first row is the info bar, more specific rule above wins) */
.mform .sub-table-td input[type="text"], .mform .sub-table-td input[type="password"], .mform .sub-table-td input[type="email"],
.mform .sub-table-td input[type="date"], .mform .sub-table-td input:not([type]), .mform .sub-table-td select{
	font: inherit; height: 2.4em; max-width: 100%; padding: 0 10px; border: 1px solid #b6cde6; border-radius: 8px; background: #fff; color: var(--hc-fg, #101d2e); box-sizing: border-box; }
.mform .sub-table-td input:focus, .mform .sub-table-td select:focus{ outline: 2px solid var(--hc-d-gr, #6cc4f0); outline-offset: 1px; border-color: var(--hc-brand, #0349a7); }
.mform .sub-table-td input[readonly], .mform .sub-table-td input[disabled]{ background: #f1f4f8; color: var(--hc-muted, #3f526a); }
.mform .sub-table-td img{ vertical-align: middle; border-radius: 6px; }
@media (max-width: 600px){
	.mform .table, .mform .table-tr, .mform .table-td, .mform .sub-table, .mform .sub-table-tr, .mform .sub-table-th, .mform .sub-table-td{ display: block; width: 100% !important; }
	.mform .sub-table-th.th-label{ text-align: left; border-bottom: 0; padding-bottom: 4px; background: transparent; }
	.mform .sub-table-td{ padding-top: 0; }
}


/* 2026-10-23 register page within one screen (single column; the PDPA text was removed from regapply.htm,
   it is shown in the consent dialog): hide the consent rows while empty (before "new"), tighter rows,
   notes in the right column on desktop. */
.mform .table > .table-tr:not(:first-child):has(.sub-table-th.th-full):not(:has(.sub-table-th *)){ display: none; }	/* consent row before "new" (row 1 = notice bar stays) */
.mform .sub-table-th, .mform .sub-table-td{ padding-top: 6px; padding-bottom: 6px; }
.mform .table-tr:last-child .sub-table-th{ font-size: .88rem; line-height: 1.55; padding: 10px 16px; }
.mform .table-tr:last-child ol{ margin: 6px 0 0; padding-left: 1.4em; }
.mform .table-tr:last-child ul{ padding-left: 1.2em; }
@media (min-width: 901px){
	/* fields (and the consent row after "new") on the left, notes on the right at full height */
	.mform .table{ display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 24px; }
	.mform .table > .table-tr{ display: block; height: auto; }
	.mform .table > .table-tr > .table-td{ display: block; }
	.mform .table > .table-tr:first-child{ grid-column: 1 / -1; margin-bottom: 6px; }
	.mform .table > .table-tr:not(:first-child):not(:last-child){ grid-column: 1; }
	/* notes span exactly the left rows (8 fields; 9 once the consent row shows after "new") and both columns end on the same line:
	   the left rows share any extra height, each row's cells fill it */
	.mform .table > .table-tr:last-child{ grid-column: 2; grid-row: 2 / span 8; border: 1px solid var(--hc-line, #d6e6f2); border-radius: 10px; overflow: hidden; background: #fff; }
	.mform .table:has(> .table-tr:nth-child(10) .sub-table-th *) > .table-tr:last-child{ grid-row: 2 / span 9; }
	.mform .table > .table-tr:not(:first-child):not(:last-child), .mform .table > .table-tr:not(:first-child):not(:last-child) > .table-td{ display: flex; }
	.mform .table > .table-tr:not(:first-child):not(:last-child) > .table-td, .mform .table > .table-tr:not(:first-child):not(:last-child) .sub-table{ flex: 1; }
	.mform .table > .table-tr:last-child .sub-table-th{ border: 0; }
	/* notes keep their own height, text from the top (the base css makes them table cells, vertically centred) */
	.mform .table > .table-tr:last-child .sub-table, .mform .table > .table-tr:last-child .sub-table-tr, .mform .table > .table-tr:last-child .sub-table-th{ display: block; height: auto; }
	/* insert mode (after "new"): compact inputs, captcha hint and consent rows so the page stays within one screen */
	.mform .sub-table-th, .mform .sub-table-td{ padding-top: 4px; padding-bottom: 4px; }
	.mform .sub-table-td input[type="text"], .mform .sub-table-td input[type="password"], .mform .sub-table-td input[type="date"], .mform .sub-table-td select{ height: 2.1em; }
	.mform .sub-table-td #mypic{ height: 2.1em; }
	.mform .sub-table-td .cap-hint{ font-size: .8rem; line-height: 1.3; color: var(--hc-muted, #3f526a); }
	.mform .table > .table-tr:not(:first-child):not(:last-child) .sub-table-th.th-full{ padding: 4px 16px; }
}

/* 2026-10-25 regapply.htm / regapply.php inline styles moved here (label 25% / value 75% / full-width rows, captcha hint, red notice) */
.mform .th-label{ width: 25%; }
.mform .td-value{ width: 75%; }
.mform .th-full{ width: 100%; text-align: left; }
.cap-hint{ display: block; }
.reg-notice{ color: #FF0000; }

/* 2026-10-25 the page-level message box (the MSG placeholder in regapplyL.htm) is never used here: all messages go through SweetAlert.
   It only held a blank line (24px) between the button bar and the form, so hide it */
.msg{ display: none; }

/* 2026-11-06 password eye (js/pwdeye.js): undo the generic button height above */
.mform .pwd-eye{ height:auto; }

/* 2026-11-06 jQuery UI datepicker: the theme images (css/images/*.png) were never deployed -> 404s and invisible
   prev/next arrows. Use the theme's fallback colours only and draw the arrows as text. */
#ui-datepicker-div, #ui-datepicker-div *{ background-image:none !important; }
#ui-datepicker-div .ui-datepicker-prev, #ui-datepicker-div .ui-datepicker-next{ cursor:pointer; }
#ui-datepicker-div .ui-datepicker-prev .ui-icon, #ui-datepicker-div .ui-datepicker-next .ui-icon{
	position:static; display:block; width:100%; height:100%; margin:0; text-indent:0; overflow:visible; font-size:0; }
#ui-datepicker-div .ui-datepicker-prev .ui-icon::before, #ui-datepicker-div .ui-datepicker-next .ui-icon::before{
	display:block; font-size:22px; line-height:1.6em; text-align:center; color:#333; }
#ui-datepicker-div .ui-datepicker-prev .ui-icon::before{ content:"\2039"; }
#ui-datepicker-div .ui-datepicker-next .ui-icon::before{ content:"\203A"; }

/* 2026-11-06 not in insert mode: no captcha, hide the whole row (regapply.php puts .cap-off in it) */
.table-tr:has(.cap-off){ display:none !important; }
@media (min-width: 901px){
	/* one row fewer on the left, so the notice panel (line 732: span 8) must span 7 to keep both columns the same height */
	.mform .table:has(.cap-off) > .table-tr:last-child{ grid-row: 2 / span 7; }
}
