/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

body {
  font-family: '微軟正黑體','Microsoft JhengHei UI','Roboto', sans-serif;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
/*a {
  color: #0366d6;
}*/

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/*.form-group.required .control-label:after {
    content: "*";
    color: red;
}

.form-group.required .col-form-label:after {
    content: "*";
    color: red;
}*/

.col-form-label, dt {
  background-color: #007bff30;
}

.control-label.required:after,
.col-form-label.required:after {
  content: "*";
  color: red;
}

.table-bordered.border-dark > tbody > tr > td,
.table-bordered.border-dark > tbody > tr > th,
.table-bordered.border-dark > tfoot > tr > td,
.table-bordered.border-dark > tfoot > tr > th,
.table-bordered.border-dark > thead > tr > td,
.table-bordered.border-dark > thead > tr > th {
  border-color: darkgray;
}

.table thead th {
  min-width: 50px;
}

table thead > tr > td.sorting,
table thead > tr > td.sorting_asc,
table thead > tr > td.sorting_desc,
table thead > tr > th.sorting,
table thead > tr > th.sorting_asc,
table thead > tr > th.sorting_desc {
  padding-right: 1.2em;
}

table thead .sorting,
table thead .sorting_asc,
table thead .sorting_asc_disabled,
table thead .sorting_desc,
table thead .sorting_desc_disabled {
  /*cursor: pointer;*/
  position: relative;
}

  table thead .sorting:after,
  table thead .sorting:before,
  table thead .sorting_asc:after,
  table thead .sorting_asc:before,
  table thead .sorting_asc_disabled:after,
  table thead .sorting_asc_disabled:before,
  table thead .sorting_desc:after,
  table thead .sorting_desc:before,
  table thead .sorting_desc_disabled:after,
  table thead .sorting_desc_disabled:before {
    position: absolute;
    bottom: .3em;
    display: block;
    opacity: .3;
  }

  table thead .sorting:before,
  table thead .sorting_asc:before,
  table thead .sorting_asc_disabled:before,
  table thead .sorting_desc:before,
  table thead .sorting_desc_disabled:before {
    right: 0.4em;
    content: "\f0de";
    font-family: 'FontAwesome';
    /*font-weight: 900;*/
    font-size: 1rem;
  }

  table thead .sorting:after,
  table thead .sorting_asc:after,
  table thead .sorting_asc_disabled:after,
  table thead .sorting_desc:after,
  table thead .sorting_desc_disabled:after {
    content: "\f0dd";
    font-family: 'FontAwesome';
    /*font-weight: 900;*/
    right: 0.4em;
    font-size: 1rem;
  }

  table thead .sorting_asc:before,
  table thead .sorting_desc:after {
    opacity: 1;
  }

  table thead .sorting_asc_disabled:before,
  table thead .sorting_desc_disabled:after {
    opacity: 0;
  }

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles ---------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}

@media print {
  ::first-letter{
    margin: 0;
    padding: 0;
  }
  html {
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0px;
  }

  @page {
    /*size: A4;*/
    width: 210mm;
    height: 297mm;
    /*margin: 30mm 45mm 30mm 45mm;*/
    margin: 10mm 10mm 10mm 10mm;
  }

  body, main {
    background-color: #fff;
    background: none;
    min-width:210mm!important;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0px;
  }

  .container{
    padding: 0 !important;
    margin:0 !important;
    width: 100% !important;
    max-width:210mm !important;
    min-width: unset !important;
  }

  table tr th,
  table tr td {
    page-break-inside: avoid;
  }

  .footer{
    width:100% !important;
    max-width:210mm !important;
    min-width:unset !important;
    /*position: fixed;
    bottom: 0;*/
  }

}
