.table-bordered {
  & {
    @media (width > 768px) {
      border: 1px solid #5c91ef;
    }
  }
  td {
    border: 1px solid #5c91ef;
  }
}
.table_custom_1 {
  thead {
    th {
      color: #fff;
      background-color: #5c91ef;
      text-align: center;
    }
  }
  tbody {
    th {
      color: #333;
      background-color: #d9e7ff;
      font-weight: 700;
      text-align: center;
      vertical-align: middle;
      border-color: #5c91ef;
    }
  }
  th,
  td {
    padding: 1rem;
  }
  td {
    vertical-align: middle;
    @media (width < 480px) {
      &:before {
        color: #fff;
        background-color: #5c91ef;
        top: 0;
        left: 0;
        height: 100%;
      }
    }
  }
}
.table-striped > tbody > tr {
  &:nth-of-type(odd) {
    background-color: #eef1fb;
  }
  &:nth-of-type(even) {
    background-color: #fff;
  }
}

#table-responsive {
  margin: 1.5rem auto;
  .table {
    @media (width < 768px) {
      tbody,
      tr,
      td {
        display: block;
      }
      thead {
        position: absolute;
        top: -9999px;
        left: -9999px;
      }
      tbody {
        th {
          display: block;
          border-block-end: 0;
        }
      }
      td {
        position: relative;
        padding-left: calc(40% + 1rem);
        text-align: left;
        white-space: normal;
        &:not(:last-of-type) {
          border-bottom: 1px solid #eee;
        }
        &::before {
          content: attr(data-title);
          position: absolute;
          top: 0;
          left: 0;
          box-sizing: border-box;
          width: 40%;
          padding: 10px;
          font-weight: bold;
          text-align: center;
          white-space: nowrap;
        }
      }
      .no_data td {
        padding-left: 0;
        &::before {
          display: none;
        }
      }
    }
  }
}

/*=================================================================
                             最新消息
=================================================================*/
.news_table td {
  text-align: left;
  vertical-align: middle;
}
.news_table tr td:first-child {
  width: 15%;
}
@media only screen and (max-width: 480px) {
  .news_table tr td:first-child {
    width: 35%;
  }
}
.news_table tr td:last-child {
  font-weight: bold;
}

/*== More ==*/
@media only screen and (max-width: 480px) {
  .news_table tr td span {
    display: block;
  }
}

/*=================================================================
                             補助申請辦法
=================================================================*/
/*--------------------------------------*/
/*               審查重點                */
/*------------------------------------- */
/*== PC ==*/
.table_focus thead tr {
  color: #fff;
  background: #5c91ef;
  text-align: center;
}
.table_focus thead th {
  text-indent: 0;
}
.table_focus tbody td {
  vertical-align: middle;
  text-align: center;
  text-indent: 0;
}
.table_focus ul,
.table_focus li {
  padding-bottom: 0;
  margin-bottom: 0;
}

/*--------------------------------------*/
/*               輔導作業流程            */
/*------------------------------------- */
.info_flow tr td:first-child {
  background: #5c91ef;
  color: #fff;
  vertical-align: middle;
  text-align: center;
}
/* 文字直寫 */
.info_flow .vertical-rl {
  letter-spacing: 1rem;
  -webkit-writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
}

/*--------------------------------------*/
/*             作業流程說明              */
/*------------------------------------- */
.info_explain td {
  vertical-align: middle;
}
.info_explain tr td:first-child {
  background: #5c91ef;
  color: #fff;
  text-align: center;
}
/* 文字直寫 */
.info_explain .vertical-rl {
  letter-spacing: 1rem;
  -webkit-writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
}

/*=================================================================
                             行動支付業者資訊
=================================================================*/
.info_table tr td,
.info_table tr td p {
  word-wrap: break-word;
}
.info_table tr:first-child td {
  text-align: center;
}
.info_table tr td:not(:nth-child(2)) {
  text-align: center;
  width: 12%;
}
@media only screen and (max-width: 480px) {
  .info_table tr td:first-child {
    width: 20%;
  }
}
.info_table tr td img {
  width: 80px;
}
.info_table tr td img:hover {
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/*-- 街口促銷 --*/
.jkos_table > thead > tr > th,
.jkos_table > tbody > tr > td {
  vertical-align: middle;
  text-align: center;
}
.jkos_table > thead > tr > th {
  background: #e60a0f;
  color: #fff;
}
#table-responsive .jkos_table > tbody > tr > td:nth-child(2) {
  text-align: left;
}

#table-responsive .jkos_table > tbody > tr:nth-of-type(odd) {
  background-color: #fff3f3;
}

@media only screen and (max-width: 767px) {
  #table-responsive .jkos_table tbody tr td {
    padding-left: 7.5em;
    border-bottom: 1px solid #bbb;
  }
  #table-responsive .jkos_table tbody tr td:last-child {
    border-bottom: 0;
  }
  #table-responsive .jkos_table tbody tr td:before {
    top: 10px;
    width: 7em;
    color: #e60a0f;
    vertical-align: middle;
  }
}

/*=================================================================
                              商圈資訊
=================================================================*/
/*== 商圈或商業街區範圍 ==*/
#county_form #table-responsive {
  margin: 0 auto 1.5rem;
}
#county_form thead tr th:first-child {
  width: 5%;
}
#county_form thead tr th:nth-child(2) {
  width: 20%;
}
#county_form thead tr th:nth-child(3) {
  width: 10%;
}

/*=================================================================
                             服務窗口
=================================================================*/
/*--------------------------------------*/
/*           包含：商圈活動資訊           */
/*------------------------------------- */
.contactus_table thead tr,
.contactus_table_01 thead tr,
.trader_table thead tr {
  background: #5c91ef !important;
  color: #fff;
  text-align: center;
}

.contactus_table thead tr th:first-child {
  width: 15%;
}
.contactus_table .taiwan_pay td .txt {
  display: block;
}
@media only screen and (max-width: 480px) {
  .contactus_table thead tr th:first-child {
    width: 30%;
  }
  .contactus_table .taiwan_pay td .txt {
    margin-bottom: 15px;
  }
  .contactus_table .taiwan_pay td .time {
    display: block;
  }
}

.contactus_table td {
  text-align: left;
  vertical-align: middle;
}
.contactus_table td.name {
  text-align: center;
  vertical-align: middle;
}
.contactus_table .contactus_label {
  margin-bottom: 0;
  color: #5c91ef;
  font-weight: 600;
}
.contactus_table td a {
  color: #007bff;
  text-decoration: underline;
}

.contactus_table .taiwan_pay td p:not(.contactus_label) {
  margin-bottom: 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #bbb;
}
.contactus_table .taiwan_pay td p:last-child {
  border-bottom: 0;
}
.contactus_table .taiwan_pay td p span {
  margin-right: 10px;
}

.contactus_table.man span {
  margin-left: 10px;
}
@media only screen and (max-width: 480px) {
  .contactus_table.man span {
    margin-left: 0;
    display: block;
  }
  .contactus_table.man .name {
    text-align: left;
  }
}

/*=================================================================
                             檔案下載
=================================================================*/
.download_page .table a {
  color: transparent;
  text-decoration: none;
}
.download_page .table th,
.download_page .table td {
  vertical-align: middle;
  text-align: center;
}
.download_page .table thead tr th {
  background: #ffe100;
  color: #1a1a1a;
}
.download_page .table tbody tr td:first-child {
  text-align: left !important;
}
.download_page #table-responsive .table tbody tr td:last-child {
  text-align: center;
}
.download_page .table-bordered td {
  border-right: 1px solid #fff;
  border-left: 1px solid #fff;
}
.download_page #table-responsive tbody .download img {
  padding-bottom: 0;
}

@media only screen and (max-width: 480px) {
  .download_page #table-responsive .table tbody tr td:last-child {
    text-align: left;
  }
  .download_page #table-responsive tbody tr td:before {
    content: attr(data-title) "：";
    display: inline-block;
    width: 6em;
    color: #08bbd2;
    font-weight: 600;
    text-align: right;
  }
  .download_page #table-responsive tbody .download img {
    padding-top: 0;
  }
}

.download_page .table tbody tr td span {
  display: inline-block;
  margin: auto 10px;
  padding: 2px 10px;
  color: #fff;
  font-size: 12px;
  line-height: 24px;
}
.download_page .table tbody .tag_01 {
  background-color: #ee7700;
}
.download_page .table tbody .tag_02 {
  background-color: #5cb85c;
}
.download_page .table tbody .tag_03 {
  background-color: #4094dd;
}

.download_page .table tbody p {
  display: inline;
}
@media only screen and (max-width: 480px) {
  .download_page .table tbody tr td span {
    margin-left: 0;
  }
  .download_page .table tbody p {
    display: block;
    margin-top: 10px;
  }
}

/*=================================================================
                        【政府】計畫申請>計畫編輯
=================================================================*/
.custom_table tr td {
  vertical-align: middle;
}
.custom_table thead tr {
  background: #5c91ef;
  color: #fff;
  text-align: center;
}
