/*按鈕元素 三種(primary,secondary,text) 預設拉出時為primary*/
.btn{
	border-radius:0;
}
.mcu-object .btn {
	padding: 0 20px;
	/* 	min-width: 130px; */
	font-size: 18px;
	letter-spacing: 1.71px;
	text-transform: uppercase;
	text-align: center;
	user-select: none;
	border-radius: 0;
	height: 40px;
	width:100%;
}
.btn.focus, .btn:focus {
	outline: 0;
	box-shadow: none;
}

/*primary*/
.btn.primary {
	background-color: #00ADD8;
	border: 2px solid #00ADD8;
	color: #FFFFFF;
}

.btn.primary:hover {
	background-color: #46C3E3;
	color: #FFFFFF;
	border-color: #46C3E3;
	cursor: pointer;
}

.btn.primary:active {
	background-color: #68737A;
	color: #FFFFFF;
	border-color: #68737A;
	cursor: pointer;
}

/*secondary*/
.btn.secondary {
	background-color: #FFFFFF;
	color: #00ADD8;
	border: 2px solid #00ADD8;
	cursor: pointer;
}

.btn.secondary:hover {
	background-color: #FFFFFF;
	color: #46C3E3;
	border-color: #46C3E3;
	cursor: pointer;
}

.btn.secondary:active {
	background-color: #68737A;
	color: #FFFFFF;
	border-color: #68737A;
	cursor: pointer;
}

/*Text Button*/
.btn.text {
	font-size: 18px;
	cursor: pointer;
	border: 2px solid transparent;
	color: #00ADD8;
	background: #FFF;
	padding:0;
}

.btn.text:hover {
	color: #46C3E3;
	background: #FFF;
}

.btn.text:active {
	color: #68737A;
	background: #FFF;
}
/*禁用時額外增加 disabled*/
.btn.primary.disabled, .btn.secondary.disabled, .btn.disabled, .btn[disabled],.btn.disabled:hover, .btn[disabled]:hover{
	background: #FFFFFF;
	color: #A8A8A8;
	border: 2px solid #E0E1E2;
	cursor: not-allowed;
	opacity:1;
}

.btn.text.disabled {
	color: #A8A8A8;
	background: #FFF;
	opacity:1;
	cursor: not-allowed;
}


/* Table*/
/* https://codepen.io/AllThingsSmitty/pen/MyqmdM */
.mcu-object thead th, .mcu-object tbody td {
	font-size: 20px;
}

.tbl-example-default {
	border: 1px solid #cecece;
	border-collapse: collapse;
	margin: 0;
	padding: 0;
	width: 100%;
	table-layout: fixed;
	color: #000;
}

.tbl-example-default tr {
	background: #ffffff;
	border: 1px solid #cecece;
	padding: .2em;
}

.tbl-example-default tbody tr:nth-child(odd) {
	background: #f0f0f0;
}

/*選中列顏色*/
.tbl-example-default tbody tr.selected{
	background-color:#D1F0F8;
}

.tbl-example-default th, .tbl-example-default td {
	padding: .3em;
	text-align: center;
	border: 1px solid #cecece;
	font-size: .75em;
}

.tbl-example-default th {
	font-size: .75em;
	letter-spacing: .1em;
	text-transform: uppercase;
	border-bottom: 2px solid #cecece;
	color: #FFF;
	background: #68737A;
}

.tbl-example-02, .tbl-example-02 tr {
	border: none;
}

.tbl-example-02 th, .tbl-example-02 td {
	border-right: none;
	border-left: none;
}

@media screen and (max-width: 600px) {
	.tbl-example-default {
		border: 0;
	}
	.tbl-example-default thead {
		border: none;
		clip: rect(0, 0, 0, 0);
		height: 1px;
		margin: -1px;
		overflow: hidden;
		padding: 0;
		position: absolute;
		width: 1px;
	}
	.tbl-example-default tr {
		border-bottom: 1px solid #cecece;
		display: block;
		margin-bottom: .5em;
	}
	.tbl-example-default td {
		border-bottom: 1px solid #cecece;
		border-top: none;
		border-right: none;
		border-left: none;
		display: block;
		font-size: .75em;
		text-align: right;
	}
	.tbl-example-default td:before {
		content: attr(data-label);
		float: left;
		font-weight: bold;
		text-transform: uppercase;
	}
	.tbl-example-default td:last-child {
		border-bottom: 0;
	}
	.tbl-example-02 tr {
		border: 1px solid #cecece;
	}
}

/* DDL jsgrid */
.jsgrid-header-row > .jsgrid-header-cell{
	border: 1px solid #68737A;
	border-right:1px solid #E9E9E9; 
	border-bottom:0;
}
.jsgrid-header-row > .jsgrid-header-cell:last-child{
	border-right: 1px solid #68737A;
}

.jsgrid-cell{
	border:1px solid #CECECE;
}

/* header row */
.jsgrid-header-row>.jsgrid-header-cell {
/*   font-size: 1.2em; */
  color: white;
  font-weight: normal;
}

/* rows */
.jsgrid-row>.jsgrid-cell {
  background-color: #F0F0F0;
}

/* alternate rows */
.jsgrid-alt-row>.jsgrid-cell {
  background-color: #FFFFFF;
}

/* editing row */
.jsgrid-edit-row>.jsgrid-cell {
/*   background-color: #5cb85c; */
}
/* 升冪＆降冪icon */
.jsgrid-header-sortable{
	position:relative;	
}
.jsgrid-header-sortable:before{
	content: "";
    display: block;
    position:absolute;
    right:14px;
    top:calc(50% - 8px);
    width: 10px;
    height: 16px;
    background: url("../images/jsgridSortableDefault.svg");
}
.jsgrid-header-sortable:before{
	background: url("../images/jsgridSortableDefault.svg");
}
.jsgrid-header-sort-asc:before {
    background: url("../images/jsgridAscending.svg");
}

.jsgrid-header-sort-desc:before {
    background: url("../images/jsgridDescending.svg");
}

/* jsgrid欄位內按鈕 */
.jsgrid-cell .btn{
	min-width:120px;
}
.jsgrid-cell .btn:not(:last-child){
	margin-right:10px;
}

/*input欄位*/
.pru-textfield-label {
	font-size: 20px;
	color: #000;
	margin-bottom: 0;
	min-height:30px;
	display:block;
	white-space:nowrap;
}

.pru-textfield {
	font-size: 24px;
	line-height: 40px;
	color: #000;
	letter-spacing: 0;
	background: none;
	border: none;
	border-bottom: 1px solid #000;
	padding-left: 6px;
	padding-right: 28px;
	padding-top:0;
	border-radius:0;
	user-select: none;
	outline: none;
	display: block;
	transition: .1s;
	height: 33px;
	padding: 0;
	padding-left:14px;
	-webkit-text-fill-color: #000;
	font-weight:300;
}

.pru-textfield::placeholder{
	color:#000;
}

.pru-textfield:focus {
	border-bottom: 1px solid #000;
}

.mcu-object .form-control:focus{
/* 	border-bottom: 1px solid #DBDBDB; */
	box-shadow:none;
}

.mcu-object .form-control:disabled, .form-control[readonly]{
	background-color: #D8D8D8;
	border-color: #D8D8D8;
	border-radius:0;
	-webkit-text-fill-color: #000;
}

[data-mcutype="DDLtextbox"].is-invalid .form-control{
	border-color: #dc3545;
}

[data-mcutype="DDLtextbox"].is-halfvalid .form-control{
	border-color: #FFB81D;
}

/* textarea */
[data-mcutype="DDLtextbox"] textarea{
	border:1px solid #000;
	border-radius:0;
	box-shadow:inset 0 1px 1px 0 rgba(0, 0, 0, 0.2);
}

/*地址*/
[data-mcutype="DDLaddress"] .controls div, [data-mcutype="DDLaddress"] .controls input
	{
	display: inline-block;
}
[data-mcutype="DDLaddress"].mcuObjectDisabled{
	background:#D8D8D8;
}
[data-mcutype="DDLaddress"].mcuObjectDisabled .select2-container .select2-selection--single{
	border-color:#000;
}
[data-mcutype="DDLaddress"].mcuObjectDisabled .controls input{
	border-color:#000;
	color:#000;
}

/* 電話 */
[data-mcutype="DDLphoneNumber"].mcuObjectDisabled{
	background:#D8D8D8;
}
[data-mcutype="DDLphoneNumber"].mcuObjectDisabled .controls input{
	border-color:#000;
	color:#000;
}

/* Radio BOX -- 詳見f030001.js*/
.pru-radio-box input[type="radio"]{
	display:none;
}

.pru-radio-box {
/* 	min-width: 252px; */
	height: auto;
	overflow-x: visible;
	white-space: normal;
}

.pru-radio-box input[type="radio"] + label span{
	font-size: 20px;
	min-width: 114px;
	padding:0 20px;
	height: 33px;
	line-height: 33px;
	text-align: center;
	color: #CECECE;
	letter-spacing: 0;
	border: 1px solid #DBDBDB;
	display: inline-block;
	background-color: #FFFFFF;
	cursor: pointer;
}
.pru-radio-box input[type="radio"].selected + label span{
	color: #FFFFFF;
	background-color: #68737A;
	border: 1px solid #68737A;
}
.pru-radio-box label:not(:last-child){
	margin-right:4px;
}

/* CHECK BOX */
.checkbox-inline{
	margin-right:30px;
}

input[type="checkbox"] {
	display: none;
}
input[type="checkbox"]+label{
	text-align: left;
	-webkit-box-sizing: border-box;
	font-size:20px;
}

input[type="checkbox"]+label.labelHorizontal{
	display: inline-block;
	position: relative;
	padding-left: 27px;
}
input[type="checkbox"]+label.labelHorizontal:not(:last-child){
	margin-right: 20px;
}

input[type="checkbox"]+label.labelVertical{
	display: block;
	position: relative;
	padding-left: 27px;
}

.checkboxLabel::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 22px;
	background: #F8F8F8;
	border: 2px solid #E0E1E2;
	-webkit-box-sizing: border-box;
	position: absolute;
	top: 3px;
	left: 0;
}

input[type="checkbox"]:checked+label::before {
	background: #F8F8F8 url('../images/checkmark.svg') no-repeat center;
}

/* radio button -- 詳見f030001.js*/
input[type="radio"] {
	display: none;
}

input[type="radio"]+label{
	text-align: left;
	-webkit-box-sizing: border-box;
	font-size:20px;
}

input[type="radio"]+label.labelHorizontal{
	display: inline-block;
}

input[type="radio"]+label.labelHorizontal:not(:last-child){
	margin-right: 20px;
}

input[type="radio"]+label.labelVertical{
	display: block;
}

.radioLabel::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 22px;
	background: url('../images/radioBtn_unchecked.svg') 0 0 no-repeat;
	vertical-align: middle;
	margin-right: 5px;
	-webkit-box-sizing: border-box;
	border-radius: 50%;
	margin-top:-5px;
}

input[type="radio"]:checked+label::before {
	background: url('../images/radioBtn_checked.svg') 0 0 no-repeat;
}

/*填寫欄位label垂直排列*/
.pru-textfield {
	display: block;
}

/* Select Box */
.select2-container--default .select2-results__option--highlighted[aria-selected]{
	background:#f8f8f8;
	color:#000;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder{
	color:#000;
}

.mcu-object .select2-container .select2-selection--single, .mcu-helper .select2-container .select2-selection--single{
	border:0;
	border-bottom:1px solid #000;
	box-shadow:none;
	font-size:24px;
	color: #000;
	border-radius:0;
	background:transparent;
}

.mcu-object .select2-container--default .select2-selection--single .select2-selection__rendered, .mcu-helper .select2-container--default .select2-selection--single .select2-selection__rendered{
	color:#000;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	white-space:normal;
	-webkit-box-orient: vertical;
	padding-right:20px;
}
.mcu-object .select2-container--default .select2-selection--single .select2-selection__arrow, .mcu-helper .select2-container--default .select2-selection--single .select2-selection__arrow{
	width:32px;
	height:32px;
	background-image: url('../images/down_arrow-nav_black.svg');
	border:0;
	top:0;
	right:0;
}
.mcu-object .select2-container--default .select2-selection--single .select2-selection__arrow b, .mcu-helper .select2-container--default .select2-selection--single .select2-selection__arrow b{
	display:none;
}

.form-control.is-valid~.select2-container .select2-selection--single{
	border-color: #28a745;
}

.form-control.is-invalid~.select2-container .select2-selection--single{
	border-color: #dc3545;
}

.mcu-object .select2-container--default .select2-results__option[aria-selected=true]{
	background-color:#F8F8F8;
}
.mcu-object .select2-container--default .select2-results__option--highlighted[aria-selected]{
	background-color: #F8F8F8;
	color:#000;
}

.mcu-object .select2-results__option{
	font-size: 24px;
	color: #A8A8A8;
	letter-spacing: 0;
	line-height: 40px;
	padding-top: 0px;
	padding-bottom: 0px;
	border-top: 0px solid #ffffff;
	display: block;
	padding-left: 16px;
	padding-right: 32px;
	width: 100%;
	overflow-y: hidden;
	height: 0px;
	opacity: 0.0;
	pointer-events: none;
	background-color: rgba(255, 255, 255, 0.8) !important;
	-webkit-backdrop: blur(8px) !important;
	cursor: pointer;
}

.mcu-object .select2-results__option:hover {
	background-color: #F8F8F8 !important;
}

.mcu-object .select2-results__option.selected {
	height: 40px !important;
	opacity: 1.0 !important;
	border: none;
	border-bottom: 1px solid #DBDBDB;
	background-color: #FFFFFF !important;
	background-image: url("../img/input_arrow_down.svg");
	background-size: 16px 10px;
	background-repeat: no-repeat;
	background-position: right 25px center;
	pointer-events: all;
}

.mcu-object.select2-container--default .select2-results__option--highlighted[aria-selected]{
	background-color: #F8F8F8 !important;
}

.mcu-object .select2-container--default .select2-selection--single .select2-selection__clear{
	color:#000;
	right:32px;
	position:absolute;
}

[data-mcutype="DDLselect2"].is-invalid .select2-container .select2-selection--single{
	border-color: #dc3545;
}

.mcu-object .tbl-example-default .btn{
	margin-right:5px;
}
/* Info Container */
.pru-tag-info-container {
	position: relative;
	font-size: 13px;
	color: #000;
	letter-spacing: 0.25px;
	line-height: 15px;
	padding: 16px;
	border: 2px solid #E0E1E2;
/* 	width: 80%; */
	background: #F8F8F8;
}

.pru-info-container{
	min-height: 120px;
	font-size: 20px;
	color: #A8A8A8;
	letter-spacing: 0.39px;
	line-height: 25px;
	width: 600px;
	text-align: center;
	vertical-align: middle;
	border: 2px solid #E0E1E2;
	background: #F8F8F8;
	padding: 45px 16px 45px 16px;
}

.pru-info-container.completed {
	border: 2px solid #68737A;
	background: #68737A;
	color:#DBDBDB;
}

.pru-tag-info-container::before{
	position: absolute;
	background-image: url("../images/info_tag.svg");
	margin-top: -18px;
	margin-left: -38px;
	width: 20px;
	height: 20px;
	content:"";
}

.pru-info-popover {
	width: 18px;
	height: 18px;
	display: inline-block;
	position: relative;
	background-image: url("../img/info_button.svg");
}

.pru-info-popover .pru-info-popover-window {
	top: 32px;
	position: absolute;
	box-shadow: 2px 2px 8px rgba(168, 168, 168, 0.5);
	padding: 16px;
	background: #ffffff;
}

/*input,select2,date 驗證成功＆錯誤icon*/
.invalid-icon{
	background-image: url(../images/error_small-status.svg);
}

.valid-icon{
/* 	background-image: url(../images/green_tick_small-status.svg); */
}

.halfvalid-icon{
	background-image: url(../images/in_progress_small-status.svg);
}

.invalid-icon, .valid-icon, .halfvalid-icon{
	position:absolute;
	right:-5px;
	top:-4px;
	display:none;
	width:30px;
	height:30px;
}
.form-control.is-invalid~.invalid-icon, .form-control.is-valid~.valid-icon, .form-control.is-halfvalid~.halfvalid-icon{
	display:block;
}

/*錯誤icon & feedback*/
.mcu-object.is-invalid .invalid-icon, .mcu-object.is-invalid .invalid-feedback{
	display:block;
}
.mcu-object.is-valid .valid-icon{
	display:block;
}

/* 驗證半錯誤icon & feedback */
.mcu-object.is-halfvalid .halfvalid-icon{
	display:block;
}

.mcu-object.is-halfvalid .halfvalid-feedback{
	display:block;
	color:#FFB81D;
}

/* Table元素驗證錯誤狀態 */
.mcu-object.table-invalid>.invalid-icon, .mcu-object.table-invalid>.invalid-feedback{
	display:block;
}

.mcu-object .mcu-object{
	position:relative!important;
}

[data-mcutype="DDLcheckgroup"].mcuObjectDisabled{
	background:#D8D8D8;
}

/*分隔線*/
hr{
	border-top: 1px solid #e0e1e2;
}

/*mcuObject disabled*/
.mcuObjectDisabled .pru-textfield-label{
	background:#D8D8D8;
}

.mcuObjectDisabled .pru-textfield{
	border-color:transparent;
}

.mcuObjectDisabled .select2-container .select2-selection--single{
	border-color:#d8d8d8;
	background:#d8d8d8;
}

.mcuObjectDisabled .select2-selection__arrow{
	display:none;
}

/*mcuObject for show*/
	/* input */
.mcuObjectForShow{
	background:#FFF;
}
.mcuObjectForShow .pru-textfield{
	border-bottom: 1px solid transparent;
}

.mcuObjectForShow .form-control:disabled, .mcuObjectForShow .form-control[readonly]{
	border-bottom: 1px solid transparent;
	background:#FFF;
}
	/* select */
.mcuObjectForShow.mcu-object .select2-container .select2-selection--single{
	border-bottom: 1px solid transparent;
}
.mcu-object.mcuObjectForShow .select2-container--default .select2-selection--single .select2-selection__arrow{
	display:none;
}

/*** 欄位寬度設定 ***/
.mcu-object.w-240px{
	width:240px;
}

.mcu-object.w-160px{
	min-width:160px;
}

/*** DDLgrid 內下拉選單與文字輸入框文字大小設定 ***/
[data-mcutype="DDLgrid"] .mcu-object .select2-container .select2-selection--single, .mcu-helper .select2-container .select2-selection--single, [data-mcutype="DDLgrid"] .pru-textfield{
 font-size:20px;
}

