* {
  margin: 0;
  padding: 0;
}

body {
  font-family: '微軟正黑體', 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
}

.test-ver {
  color: #f00;
  font-weight: bold;
}

.font-size-1 {
  font-size: 1rem;
}

.font-size-1-2 {
  font-size: 1.2rem;
}

.font-size-2 {
  font-size: 2rem;
}

.modal-mw-100 {
  max-width: 100%;
}

.color-red {
  color: #ff0000 !important;
}

.color-green {
  color: #00ff00 !important;
}

.color-blue-green {
  color: #209e91 !important;
}

.color-ip1 {
  color: #279327 !important;
}

.color-gray {
  color: #cccccc !important;
}

.row-mark {
  background-color: #ffd99d;
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}

.text-overflow-ellipsis {
  text-overflow: ellipsis;
  overflow: hidden;
}

.modal-open {
  overflow: auto;
}

button.close {
  position: absolute;
  right: 15px;
  font-size: 36px;
}

button[disabled] {
  cursor: not-allowed;
}

label {
  font-weight: 700;
}

input.unfilled,
select.unfilled,
textarea.unfilled,
input.unfilled:focus,
select.unfilled:focus,
textarea.unfilled:focus {
  background: #ffbcbc;
}

input.error,
select.error,
textarea.error {
  background: #ffb5b5;
}

.manage {
  color: #cccccc;
}

.manage:hover {
  color: #07867c;
  cursor: pointer;
}

/* checkbox */
.slider-checkbox {
  position: relative;
  display: block;
  height: 30px;
  line-height: 30px;
  width: 200px;
  min-width: 200px;
  overflow: hidden;
  box-shadow: inset 1px 1px 5px #000;
  background: #dcdcdc;
  border: 1px #aaa solid;
  box-sizing: border-box;
}

.slider-label {
  display: block;
  overflow: hidden;
  cursor: pointer;
  height: 30px;
  width: 200px;
  text-align: center;
}

.slider-checkbox-input {
  display: none;
}

.slider-checkbox-text {
  display: block;
  width: 150px;
  height: 30px;
  font-size: 16px;
  background: #209E91;
  color: #fff;
  position: absolute;
  top: 0px;
  left: 0px;
  transition: all 0.1s ease-in 0s;
  -webkit-transition: all 0.1s ease-in 0s;
  -moz-transition: all 0.1s ease-in 0s;
  -ms-transition: all 0.1s ease-in 0s;
  -o-transition: all 0.1s ease-in 0s;
}

.slider-checkbox-text::before {
  content: attr(left);
}

.slider-checkbox-input:checked+label>.slider-checkbox-text {
  left: 50px;
}

.slider-checkbox-input:checked+label>.slider-checkbox-text::before {
  content: attr(right);
}

.slider-checkbox-red {
  background: #db4a4a !important;
}

/* toggle checkbox */
input.switch {
  display: none;
}

input.switch+label {
  display: block;
  cursor: pointer;
  width: 100px;
  height: 30px;
  background: #eee;
  border: 1px #aaa solid;
  border-radius: 100px;
  position: relative;
}

input.switch+label:after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 100px;
  transition: .3s;
}

.switch-txt::before,
.switch-txt::after {
  display: inline-block;
  font-weight: bold;
  height: 30px;
  line-height: 30px;
  width: 48px;
  text-align: center;
}

input.switch+label .switch-txt::before {
  content: attr(turnOn);
  color: #fff;
  visibility: hidden;
}

input.switch:checked+label .switch-txt::before {
  visibility: visible;
}

input.switch+label .switch-txt::after {
  content: attr(turnOff);
  color: #666;
  visibility: visible;
}

input.switch:checked+label .switch-txt::after {
  visibility: hidden;
}

input.switch:checked+label {
  background: #209e91;
}

input.switch:active:after {
  width: 30px;
}

input.switch:checked+label:after {
  left: calc(100% - 5px);
  transform: translateX(-100%);
}

input[type=checkbox] {
  accent-color: #209e91;
}

/* table */
thead tr {
  background-color: #d3eae8;
}

table thead tr th {
  color: #212529;
  text-align: center;
}

ul.pagination>li>a.page-link {
  background: #fafafa;
  color: #666;
}

ul.pagination>li.active>a.page-link,
ul.pagination>li.active>a.page-link:hover,
ul.pagination>li.active>a.page-link:focus {
  background-color: #209e91;
  border-color: #ffffff;
}

/* RWD table */
.rwd-table {
  width: 100% !important;
}

.rwd-table td {
  display: table-cell;
}

.rwd-table td::before {
  color: #06756b;
  font-weight: bold;
  font-size: 15px;
}

h3 {
  font-family: 'Source Sans Pro', sans-serif, '微軟正黑體';
}

.btn {
  text-wrap: nowrap;
}

.btn-ipt1 {
  background-color: #209e91;
  border-color: #07867c;
  color: #ffffff;
}

.btn-ipt1:hover {
  background-color: #1b867b;
  border-color: #167067;
  color: #ffffff;
}

.btn-default {
  background-color: #f4f4f4;
  color: #444;
  border-color: #ddd;
}

.btn-default:hover,
.btn-default:active,
.btn-default.hover {
  background-color: #e7e7e7;
}

.btn-default:hover {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}

.btn-ipt1-user {
  background-color: #2c3b41 !important;
  border-color: #126f66 !important;
  color: #1dc7b6 !important;
  margin: 10px;
}

.btn-ipt1-user:hover {
  background-color: #1b867b !important;
  border-color: #167067 !important;
}

a {
  color: #4db1a7;
}

a:hover,
a:active,
a:focus {
  outline: none;
  text-decoration: none;
  color: #72afd2;
}

.form-control:focus {
  box-shadow: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: 0;
  border: 1px solid #15AB9C;
}

input::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #999999;
  opacity: 1;
  /* Firefox */
}

input:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #999999;
}

input::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #999999;
}

.input-group-addon {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-left: 0;
  border-radius: 0 0.25rem 0.25rem 0;
}

div.modal-content {
  box-shadow: 5px 8px 7px 5px rgba(0, 0, 0, 0.28);
  border-radius: 15px;
}

.no-use {
  display: none;
}

.star {
  color: #209e91;
}

@media screen and (max-width: 768px) {
  .rwd-table th {
    display: none;
  }

  .rwd-table td {
    padding: 3px 5px;
    display: block;
  }

  .rwd-table td::before {
    content: attr(data-th) "";
    display: inline-block;
    width: 150px;
  }

  .rwd-table td.no-head::before {
    display: none;
  }

  .empty-table td::before {
    width: 0px;
  }
}