/*==================== RWD表格 ====================*/
.table-wrapper {
  width: 100%;
}
.table-rwd {
  padding: 0 0rem 1rem 0;
}

.table-rwd th, .table-rwd td {
  padding: 4px 6px;
}
.table-rwd tr:nth-child(odd) {
  background: #cccccc52;
}
/*標頭*/
.table-rwd tr.tr-only-hide {
  color: #fff;
  background: #6ba7bb;
}

tr.tr-only-hide th {
  border:none!important;
  border-right: 1px solid #ffffff40!important;
}
.table-rwd .note {
  color: #cdf8f5;
  display: block;
  width: 100%;
  padding-bottom: 5px;
}
.table-rwd a {
  display: inline-block;
  color: #fff;
  border-radius: 3px;
  margin: 0 1px 0 1px;
}
.table-rwd a.edit {
  background: #85bc7b;
}
.table-rwd a.edit:hover {
  background: #5d9b51;
}
.table-rwd a.delete {
  background: #878388;
}
.table-rwd a.delete:hover {
  background: #756b77;
}
@media (max-width: 768px) {
  .table-rwd {
    background: #cccccc52;

  }
  /*針對tr去做隱藏*/
  .table-rwd thead {
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
    white-space: nowrap
  }
  tr.tr-only-hide {
    display: none !important;
  }
  /*讓tr變成區塊主要讓他有個區塊*/
  .table-rwd tr {
    display: block;
    padding: .5rem 0;
  }
  .table-rwd tr {
    background: #fff !important;
    border-bottom: 10px solid #cccccc52;
  }
  .table-rwd td {
    /*-webkit-column-gap: 2.16vw;
    -moz-column-gap: 2.16vw;
    column-gap: 2.16vw;*/
    display: grid;
    grid-template-columns: 1fr 2fr;
    text-align: left !important;
    padding: .5px 0!important;


  }
  .table-rwd td:before {
    /*最重要的就是這串*/
    content: attr(data-th) " : ";
    /*最重要的就是這串*/
    display: inline-block;
    text-transform: uppercase;
    font-weight: bold;
    margin-right: 0;
    color: #fff;
    padding: .5rem;
    background: #6ba7bb;
    text-align: right;
  }
  .table-rwd .td-text {
    padding: .5rem .8rem;
    display: inline-block;
 border-bottom: 1px dashed #ccc;
    border-right: 1px dashed #ccc;
  }
  .table-rwd td:first-child .td-text{
        border-top: 1px dashed #ccc;
  }


  .table-rwd a.but {
    padding: .5rem 2rem;
  }
  /*當RWD縮小的時候.table-bordered 會有兩條線，所以針對.table-bordered去做修正*/
  .table-rwd.table-bordered td, .table-rwd.table-bordered th, .table-rwd.table-bordered {
    border: 0;
  }
}
@media (max-width: 568px) {
  .table-rwd {
    padding: .5rem;
  }
  .table-rwd td:before {
    content: attr(data-th) "  ";
    text-align: left;
  }
  .table-rwd .td-text a.but {
    width: 95%;
    padding: .5rem 0;
    text-align: center;
    margin-bottom: .5rem;
  }
}