html{
	height: 100%;
}

body{
	margin: 0;
	padding: 0;
	height: 100%;
	min-height: 720px;
	min-width: 960px;
	font-family: Verdana, Geneva, Heiti TC, Microsoft JhengHei, sans-serif;
	position: relative;
}

.converter-header{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	padding: 12px;
	box-sizing: border-box;
	background-color: #045A61;
	color: white;
	text-align: center;
	z-index: 1;	/* Higher than sidebar */
}

.converter-header-links{
	position: absolute;
	bottom: 8px;
	right: 8px;
}

.converter-header-links a{
	display: inline-block;
	padding: 4px;
	margin: 0 0 0 4px;
	background-color: #08683A;
	color: #FFFFFF;
	text-decoration: underline solid;
}

.converter-footer{
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 12px;
	box-sizing: border-box;
	background-color: #045A61;
	color: white;
	text-align: right;
}

.converter-sidebar{
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 190px;
	padding: 42px 0 40px 0;	/* top: header 40 + margin 2; bottom: footer 40 */
	box-sizing: border-box;
	background-color: #D66E18;
}

.converter-main{
	width: 100%;
	height: 100%;
	padding: 40px 0 40px 190px;
	box-sizing: border-box;
}

.converter-frame{
	
}

.sidebar-flag{
	position: relative;
	padding: 28px 0 28px 0;
	margin-bottom: 2px;
	border: 1px solid #AB5F2D;
	background-color: #D4D4D4;
	color: #4B4B4B;
	text-align: center;
	font-size: 20px;
	line-height: 20px;
	cursor: pointer;
	line-height: 1.25;
}

.sidebar-flag:hover{
	color: yellow;
}


.sidebar-flag.current{
	color: white;
	background-color: #8D431B;
}

.sidebar-flag.current:hover{
	color: yellow;
}

.converter-command-params table{
	box-sizing: border-box;
	width: 100%;
	border-collapse: collapse;
}

.converter-command-params table td{
	border: 4px solid transparent;
}


.converter-inputblock{
	line-height: 2;
}

.converter-inputblock + .converter-inputblock{
	margin-top: 4px;
}

h1{
	font-size: 24px;
	font-weight: bold;
	padding: 0 0 0.5rem 0;
}

h2{
	font-size: 18px;
	font-weight: bold;
	padding: 1rem 0 0.5rem 0;
}

.converter-sub{
	font-size: 12px;
	font-weight: normal;
	vertical-align: bottom;
}

form label{
	display: table-cell;
	padding: 4px 0;
}

form input{
	height: 1.25rem;
	line-height: 1.25;
}

input[type="text"],
select,
textarea{
	box-sizing: content-box;
	width: 200px;
	border: 1px solid grey;
	border-radius: 2px;
	padding: 4px 8px;
	line-height: 1.25;
	font: 1rem Microsoft JhengHei;
}

select{
	height: 20px; /* select can only use height property to control content height ? */
}

input[type="text"].command-param-text,
select.command-param-select{
	width: 450px;
}

.converter-stepframe{
	display: none;
	height: 100%;
}

.converter-stepframe.current{
	display: block;
}

.converter-screen{
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	overflow-y: auto;
}

.conterter-content{
	height: 100%;
	width: 100%;
	box-sizing: border-box;
	padding: 8px;
}

.converter-intro{
	margin: 1rem auto;
	padding: 1rem;
	border: 1px solid black;
	text-align: center;
}


.converter-steps{
	padding: 1rem 0 0 0;
	text-align: center;
	font-size: 0;
}

.converter-buttoncontainer{
	padding: 0.5rem 0;
}

.converter-rulesdescription{
	resize: none;
	height: 120px;
	width: 500px;
}

.converter-column{
	box-sizing: content-box;
	width: 616px;	/* 16 px for scrollbar */
	height: 400px;
	overflow-x: hidden;
	overflow-y: scroll;
	border: 2px solid black;
	border-radius: 6px;
	margin: 4px;
	padding: 4px;
}

.converter-command{
	box-sizing: border-box;
	width: 600px;
	padding: 2px;
	background-color: #D5C8EA;
}

.converter-command + .converter-command{
	margin-top: 4px;
}

.converter-command-header{
	padding: 4px 8px;
	position: relative;
	border: 1px solid #FAEE77;
	color: white;
	background-color: #253392;
}

.formedcommand .converter-command-header{
	margin-bottom: 4px;
}

.converter-command-params{
	display: none;
	padding: 4px;
}

.converter-command-header .converter-draghint{
	position: absolute;
	top: 50%;
	right: 4px;
	margin-top: -8px;
	background-image: url("jquery-ui/images/ui-icons_ffffff_256x240.png");
}

.converter-command.converter-command-error{
	background-color: #D6B8B8;
}

.converter-command-error .converter-command-header{
	background-color: #DB1C1C;
}

.command-param-text.converter-command-error,
.command-param-select.converter-command-error{
	border-color: #FF0000;
}

/* Table */
.converter-corpuslist-tbl{
	border-collapse: collapse;
	width: 450px;
}

.converter-corpuslist-tbl th{
	border: 1px solid #E7E7E7;
	padding: 0.5rem;
	background-color: #31A63F;
	color: white;
	text-align: center;
}

.converter-corpuslist-tbl tr:nth-child(even){
	background-color: #F2F2F2;
}

.converter-corpuslist-tbl td{
	border: 1px solid #E7E7E7;
	padding: 0.5rem;
	color: black;
	text-align: center;
}

.converter-corpuslist-tbl .converter-corpuslisttbl-name .converter-corpuslisttbl-batchCouont {
	text-align: left;
}

/* Input */
.converter-inputgroup{
	display: inline-block;
	vertical-align: middle;
}

.converter-inputgroup .converter-inputfile-info,
.converter-inputgroup .converter-inputfile{
	display: table-cell;
}

.converter-inputgroup .converter-inputfile-info{
	min-width: 12rem;
	padding: 4px 8px;
	border : 1px solid grey;
	border-right: 0;
	border-radius: 4px 0 0 4px;
	color: black;
	text-align: left;
	vertical-align: middle;
	white-space: nowrap;
	text-decoration: none;
	background: white;
	box-shadow: none;
	font-size: 1rem;
	font-weight: normal;
	line-height: 1.25;
}

.converter-inputgroup .converter-inputfile-info+.converter-inputfile{
	padding: 4px 8px;
	border : 1px solid #2777E5;
	border-left: 0;
	border-radius: 0 4px 4px 0;
	color: white;
	text-align: center;
	vertical-align: middle;
	white-space: nowrap;
	text-decoration: none;
	background: #2777E5;
	box-shadow: none;
	font-size: 1rem;
	font-weight: normal;
	line-height: 1.25;
	cursor: pointer;
}

.converter-inputgroup .converter-inputfile-info+.converter-inputfile:hover{
	background-color: #236BCE;
}
.converter-inputgroup .converter-inputfile-info+.converter-inputfile:active{
	background-color: #174789;
}

.converter-inputfile{
	display: inline-block;
	position: relative;
	overflow: hidden;
}

.converter-inputfile+input{
	display: none;
}

.converter-inputfile-info{
	display: inline
}

/* Buttons */
.converter-button{
	display: inline-block;
	padding: 4px 8px;
	margin: 4px 8px;
	border : 0;
	border-radius: 4px;
	color: white;
	text-align: center;
	vertical-align: middle;
	white-space: nowrap;
	text-decoration: none;
	background: grey;
	box-shadow: none;
	font-size: 1rem;
	font-weight: normal;
	line-height: 1.25;
	cursor: pointer;
	font-family: Microsoft JhengHei;
}

.converter-button.large{
	padding: 4px 12px;
	font-size: 1.5rem;
}

.converter-button.normal{
	background-color: #2777E5;
}
.converter-button.prime{
	background-color: #FDA41D;
}
.converter-button.alert{
	background-color: #FF2121
}
.converter-button.normal:hover{
	background-color: #236BCE;
}
.converter-button.normal:active{
	background-color: #174789;
}
.converter-button.prime:hover{
	background-color: #E3931A;
}
.converter-button.prime:active{
	background-color: #A36912;
}
.converter-button.alert:hover{
	background-color: #CC1A1A;
}
.converter-button.alert:active{
	background-color: #A31414;
}

.converter-delbtn{
	display: inline-block;
	position: relative;
	height: 18px;
	width: 18px;
	padding: 0;
	border: 1px solid #CCCCCC;
	background: #DD0000;
	background: -webkit-linear-gradient(left top, #DDDDDD, #DD0000);
	background: -o-linear-gradient(bottom right, #DDDDDD, #DD0000);
	background: -moz-linear-gradient(bottom right, #DDDDDD, #DD0000);
	background: linear-gradient(to bottom right, #DDDDDD, #DD0000);
	line-height: normal;
	cursor: pointer;
	vertical-align: middle;
	overflow: visible;
}

.converter-delbtn:hover{
	border: 1px solid #FFF486;
	background: #FF3300;
	background: -webkit-linear-gradient(left top, #FFFFFF, #FF3300);
	background: -o-linear-gradient(bottom right, #FFFFFF, #FF3300);
	background: -moz-linear-gradient(bottom right, #FFFFFF, #FF3300);
	background: linear-gradient(to bottom right, #FFFFFF, #FF3300);
}

.converter-delbtn:active{
	border: 1px solid #FFF486;
	background: #DD0000;
	background: -webkit-linear-gradient(bottom right, #DDDDDD, #DD0000);
	background: -o-linear-gradient(top left, #DDDDDD, #DD0000);
	background: -moz-linear-gradient(top left, #DDDDDD, #DD0000);
	background: linear-gradient(to top left, #DDDDDD, #DD0000);
}

.converter-delbtn .converter-delbtnicon{
	display: block;
	/* Imitate jQuery UI Button Settings */
	position: absolute;
	left: 50%;
	top: 50%;
	margin: -8px 0 0 -8px;
	background-image: url("jquery-ui/images/ui-icons_ffffff_256x240.png");
}

.converter-command-header .converter-delbtn{
	position: absolute;
	right: 4px;
	top: 3px;
}

/* specific */
.converter-resultoutput{
	text-align: center;
}

/* 20170616 - jquery */
.converter-command-placeholder{
	margin: 8px 0;
	background-color: #BFBFBF;
	opacity: 0.5;
}