/*
 * Basic Table Demo CSS.
 */

@import url(https://fonts.googleapis.com/css?family=Lato:400,700|Montserrat:400,700);

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}





@media only screen and (max-width: 568px) {
  .phone-block {
    display: block;
  }

  .phone-hide {
    display: none;
  }
}

code {
  background: #c6d8d8;
  border-radius: 5px;
  color: #3d6969;
  display: block;
  margin: 2em 0;
  padding: 15px;
  position: relative;
}

code:after {
  bottom: 5px;
  color: #e4ebeb;
  font-family: 'Lato', sans-serif;
  position: absolute;
  right: 10px;
  text-transform: uppercase;
}

table {
  background: white;
  border-collapse: collapse;
  margin: 1.25em 0 0;
  width: 100%;
}

table tr,
table th,
table td {
  border: none;
}


table th,
table td {
  padding: 15px 4px;
  text-align:left;
}

table th {
  background: #2F78A2;
  color: #ffffff;
  text-transform: uppercase;
}

table tr td {
  background: #eaf3f5;
  color: #333;;
}

table tr:nth-of-type(2n+2) td {
  background: #ffffff;
}

table.bt tfoot th,
table.bt tfoot td,
table.bt tbody td {
  padding: 0;
}

table.bt tfoot th:before,
table.bt tfoot td:before,
table.bt tbody td:before {
  background: #2F78A2;
  color: white;
  margin-right: 10px;
  padding: 2px 10px;
}

table.bt tfoot th .bt-content,
table.bt tfoot td .bt-content,
table.bt tbody td .bt-content {
  display: inline-block;
  padding: 2px 5px;
}

table.bt tfoot th:first-of-type:before,
table.bt tfoot th:first-of-type .bt-content,
table.bt tfoot td:first-of-type:before,
table.bt tfoot td:first-of-type .bt-content,
table.bt tbody td:first-of-type:before,
table.bt tbody td:first-of-type .bt-content {
  padding-top: 10px;
}

table.bt tfoot th:last-of-type:before,
table.bt tfoot th:last-of-type .bt-content,
table.bt tfoot td:last-of-type:before,
table.bt tfoot td:last-of-type .bt-content,
table.bt tbody td:last-of-type:before,
table.bt tbody td:last-of-type .bt-content {
  padding-bottom: 10px;
}



.bt-wrapper.active {
  margin-top: 1.5em;
}
.bt-wrapper.active table {
  margin: 0;
}


table {
  width: 100%;
}
.table {
  margin: 30px 0;
  border-collapse: collapse;
  border-spacing: 0;
  empty-cells: show;
  border: 1px solid #e0e0e0;
}
.table caption {
  color: #333;
  font-style: italic;
  line-height: 1;
  padding: 1em 0;
  text-align: center;
}
.table td, .table th {
  border-left: 1px solid #e0e0e0;
  border-width: 0 0 0 1px;
  margin: 0;
  overflow: visible;
  padding: 0.5em 1em;
  font-weight: normal;
}
.table td:first-child,
.table th:first-child {
  border-left-width: 0;
}
.table thead,
.table tfoot {
  background-color: #f05050;
  color: #fff;
  text-align: left;
  vertical-align: bottom;
}
.table thead td,
.table tfoot td,
.table thead th,
.table tfoot th {
  border-color: #fff;

}
.table td {
  background-color: transparent;

}
.table_striped tr:nth-child(2n-1) td {
  background-color: #ececec;
}
.table_bordered td {
  border-bottom: 1px solid #e0e0e0;
}
.table_bordered tbody > tr:last-child > td,
.table_bordered thead > tr:last-child > td {
  border-bottom-width: 0;
}
.table_horizontal td,
.table_horizontal th {
  border-width: 0 0 1px 0;
  border-bottom: 1px solid #e0e0e0;
}
.table_horizontal tbody > tr:last-child > td,
.table_horizontal thead > tr:last-child > td {
  border-bottom-width: 0;
}




/*報名按鈕*/
table td:nth-child(9) .bt-content a, .bt-content .sign{
	padding: 2px 8px;
	border-radius: 3px;
  background: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzhmY2YwMCIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzZiOWMwMCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');
  background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #8fcf00), color-stop(100%, #6b9c00));
  background: -moz-linear-gradient(top, #8fcf00, #6b9c00);
  background: -webkit-linear-gradient(top, #8fcf00, #6b9c00);
  background: linear-gradient(to bottom, #8fcf00, #6b9c00);
  background-color: #7db500;
  color: #FFFFFF;
 }
.bt-content .sign:hover{
	  background: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2U4NTQzZiIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2Q5MzMxYSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');
  background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e8543f), color-stop(100%, #d9331a));
  background: -moz-linear-gradient(top, #e8543f, #d9331a);
  background: -webkit-linear-gradient(top, #e8543f, #d9331a);
  background: linear-gradient(to bottom, #e8543f, #d9331a);
  background-color: #E54028;
}

/*大眾課程訊息表格*/
table td:nth-child(1), table th:nth-child(1){
	text-align: center;
width: 5%;
}
table td:nth-child(2), table th:nth-child(2){

width: 25%;
}

table td:nth-child(3), table th:nth-child(3), table td:nth-child(5), table th:nth-child(5){
    width: 10%;
	text-align: center;
}

table td:nth-child(4), table th:nth-child(4){
width: 10%;
text-align: center;
}

table td:nth-child(5), table th:nth-child(5){
width: 20%;
}

table td:nth-child(6), table th:nth-child(6){
    text-align: center;
    width: 10%;
}
table th:nth-child(7){
		text-align: center;
}
table td:nth-child(7), table th:nth-child(7){
	width: 10%;


}
table td:nth-child(8), table th:nth-child(8){
	text-align: center;
	width: 10%;
}

table td:nth-child(9), table th:nth-child(9){
	text-align: center;
	width: 8%;
}



table tr td:nth-child(8) .bt-content a{
	background: #32808B;
	color: #fff;
	border-radius: 3px;
	padding: 5px 15px ;
	text-decoration: none;
    display:inline-block;
}
table tr td:nth-child(8) .bt-content a:focus{
	outline: 2px solid #000000!important;
	background: #ffa600!important;
	color: #000!important;
	-moz-outline-style:2px solid #000000!important;
}
table tr td:nth-child(8) .bt-content a:hover{
		background: #ec6545;
}

table tr td:last-child .bt-content a{
	/*background: none;*/
}


/*==== 個人 ====*/
table.record td:nth-child(7), table.record th:nth-child(7) {
    width: 15%;
}
table.record tr td:nth-child(8) .bt-content a{
    background: none;
    padding: inherit;
}

/*TD另外標示*/
table tr td .bt-content span{
      display:inline-block;
}
/*td區域*/
table tr td .bt-content span.area{
background: #ce507a;
    color: #fff;
    padding: 2px 12px;
    border-radius: 10px;
    margin: 2px 0;
    letter-spacing: 1px;
}
/*td時間*/
table tr td .bt-content span.time{
      color: #b15125;
    font-weight: 600;

}

/*td主題*/
table tr td .bt-content span.theme{
  display: inline-block;
  width: 100%;
  font-weight: 600;
  margin: 2px 0;
}

/*填表頁面*/

.course.add  th, .course.add  td{
	padding: 15px 10px;
	width: auto !important;
	    font-family: '微軟正黑體', Arial, Helvetica, sans-serif;
	
}

.course.add input, .course.add textarea, .course.add select{
	border: 1px solid #ccc;
	padding: .5rem ;
	border-radius: 3px;
}

.course.add  input[type="radio"]{
	margin-left: 5px;
}



.send{
	text-align: center;
	padding: 1rem 0;
}
.send a{
	display: inline-block;
	background: #32808B;
	color: #fff;
	border-radius: 3px;
	padding: 10px 25px ;
	text-decoration: none;
}

.course.add td:last-child{}



.course span.bt-content{}
.course .bt-content{}


@media only screen and (max-width: 768px) {
	
	
	
	table td:nth-child(2){
	width: 100%;
}
	
	
	table td, table th{
		text-align: left!important; 
		width: 100%!important; 
		
	}

	
table.bt tfoot th .bt-content, table.bt tfoot td .bt-content, table.bt tbody td .bt-content {
    padding: 8px 5px;
}	
	
	.bt-content .sign{
		padding: 2px 20px;
	}
	

table.bt tfoot th::before, table.bt tfoot td::before, table.bt tbody td::before {
    width: 15em;
}
	
table.bt tbody td  span{
		display: block;
		width: 100%;
	}
table.bt tbody td  span.bt-content span.area{
      display: inline-block;
    width: auto;

  }
	
	.bt-content .sign{
		width: 98%;
		padding: 8px 20px;
		display: block;
		background: #8BC34A;
		text-align: center;
	}	
}


@media only screen and (max-width: 480px) {
	table.bt tfoot th::before, table.bt tfoot td::before, table.bt tbody td::before {
    width: 6.6em;
}
	
	
	.bt-content .sign{
		width: 96%;

	}		
	
}
