@charset "UTF-8";

/*RWD表格*/

.rwd-table {
  margin: 8px auto 30px;
  min-width: 320px;
  width: 100%;
  border-collapse: collapse;
  color: #333;
  border-radius: 0.4em;
  overflow: hidden;
  font-size: 16px;
}

.rwd-table thead tr th {
  border-top: none;
  background: #639898;
  color: #fff;
}

.rwd-table tr {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  background-color: #f7f5f5;
  /*border-color: #bfbfbf;*/
}

.rwd-table tr:nth-child(even) {
  background-color: #ebebebe3;
}

.rwd-table th {
  display: none;
}

.rwd-table tr {
  padding: 0.5em;
}

.rwd-table td {
  display: block;
  vertical-align: top;
  display: flex;
}

.rwd-table td:first-child {
  margin-top: 0.5em;
}

.rwd-table td:last-child {
  /*margin-bottom: .5em;*/
}

.rwd-table td:before {
  content: attr(data-th) " ";
  font-weight: bold;
  width: 110px;
  display: inline-block;
  color: #000;
  margin-left: -8px;
  text-align: right;
  margin-right: 8px;
  padding-right: 5px;
  border-right: 3px solid #366f84;
  flex: none;
}

.rwd-table th,
.rwd-table td {
  text-align: left;
  padding: 0.3em 0.7em;
}

.rwd-table input[type="button"] {
  background: transparent;
  border: none;
}

.rwd-table td.mergeRowspan {
  background-color: #f7f5f5 !important;
}

/*螢幕寬度小於601像素以下*/
@media screen and (max-width: 601px) {
  .rwd-table {
    margin-bottom: 20px;
  }

  .rwd-table tr:nth-child(2) {
    border-top: none;
  }

  .rwd-table .hidFields {
    display: none;
  }

  .rwd-table th,
  .rwd-table td {
    padding: 0.2em 0.6em;
  }

  .rwd-table td:before {
    content: attr(data-th) " ";
    font-weight: bold;
    min-width: 100px;
    display: inline-block;
    color: #366f84;
    margin-left: -8px;
    text-align: right;
    margin-right: 8px;
    padding-right: 5px;
    font-size: 14px;
  }

  .rwd-table td:last-child {
    margin-bottom: 0.5em;
  }

  .rwd-table td.mergeRowspan {
    background-color: initial !important;
  }
}

/*螢幕寬度小於424像素以下*/

@media screen and (max-width: 424px) {
}

/*螢幕寬度大於600像素*/
/*桌機*/

@media screen and (min-width: 600px) {
  .rwd-table tr:hover {
    background-color: #feffe9;
  }

  .rwd-table td:before {
    display: none;
  }

  .rwd-table th,
  .rwd-table td {
    display: table-cell;
    padding: 0.25em 0.5em;
  }

  .rwd-table th:first-child,
  .rwd-table td:first-child {
    padding-left: 0;
    border-left: none;
  }

  .rwd-table th:last-child,
  .rwd-table td:last-child {
    padding-right: 0;
  }

  .rwd-table th,
  .rwd-table td {
    padding: 0.4em 1em !important;
  }

  .rwd-table th {
    border-right: 1px solid #fff;
    text-align: center;
    word-break: keep-all;
  }

  .rwd-table td {
    border-left: 1px solid #cecbc5;
    text-align: center;
    vertical-align: middle;
  }

  .rwd-table td.text-right {
    text-align: right;
  }

  .rwd-table td .form-control {
    margin-top: -0.15em;
    margin-bottom: -0.15em;
  }

  .td-w600pxUp-none {
    display: none !important;
  }
}

/*可編輯欄位樣式*/
.editColumn {
  background-color: #dde9ff;
}

/* rwd_tableHorMove 水平移動表格==================================== */
/* 控制tr開闔的按鈕 */
.row-collapse-trigger {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
  color: black;
  text-indent: 5px;
}

.row-collapse-trigger span {
  display: block;
  width: 100%;
}

.row-collapse-trigger::before {
  font-family: "Font Awesome 5 Pro";
  content: "\f0d7";
  display: block;
  font-weight: 900;
}

.row-collapse-trigger.down::before {
  content: "\f0da";
}

.row-collapse-trigger:hover {
  text-decoration: none;
}

.rwd_tableHorMove tr {
  position: relative;
}

/* 水平移動表格 */
.rwd_tableHorMove {
  font-size: 15px;
}

.rwd_tableHorMove tr {
  position: relative;
}

.rwd_tableHorMove tr .freeze {
  position: -webkit-sticky;
  position: sticky;
  border-right: 1px solid transparent;
  left: 0;
}

.rwd_tableHorMove th,
.rwd_tableHorMove td {
  background: white;
  white-space: nowrap;
}

/* treetable ======================================== */
.table-responsive-row {
  margin-left: -10px;
  margin-right: -10px;
}

table.treetable {
  font-size: 16px;
}

table.treetable thead tr th {
  font-weight: normal;
  padding: 0.4em 1em !important;
  text-align: left;
  background: #639898;
  color: #fff;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  border-color: #bfbfbf;
  font-size: 16px;
  font-weight: bold;
}

table.treetable td.last.freeze {
  background: #e7e7e7;
  border: 1px solid #cbcbcb;
}

table.treetable td {
  padding: 0.4em 0.6em !important;
  border: 1px solid #ddd;
}

/*螢幕寬度小於576像素以下*/

@media screen and (max-width: 576px) {
}

/* .freezing-end {
    width: 80px;
} */

/* 凍結分隔線 */
.rwd_tableHorMove_line {
  position: absolute;
  top: 0;
  left: 0;
  width: 0px;
  height: 100%;
  border-left: double #dee2e6;
}
