﻿/* 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. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.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: 0px;
    font-family: arial,"Microsoft JhengHei","微軟正黑體",sans-serif !important;
}
.header {
    padding-top: 0;
    padding-bottom: 0;
    z-index: 10;
}
.footer {
    position: fixed;
    bottom: -30px;
    width: 100%;
    white-space: nowrap;
    /* Set the fixed height of the footer here */
    height: 30px;
    line-height: 29px; /* Vertically center the text there */
    -webkit-transition: padding-left .3s ease;
    transition: padding-left .3s ease;
    background-color: #1675bf;
    color: white !important;
    padding-top: 0;
    padding-bottom: 0;
    z-index: 10;
}
/* -- -- -- -- -- -- -- -- */

main#main_d {
    padding: 20px;
}

.page-wrapper.toggled .footer {
    bottom: 0;
}
.header {
    -webkit-transition: padding-left .3s ease;
    transition: padding-left .3s ease;
    background-color:white;
}

.page-wrapper.toggled .header {
    padding-left: 280px;
}

.page-wrapper.toggled .footer {
    padding-left: 280px;
}

.page-wrapper.toggled.pinned.pinned .header {
    padding-left: 80px;
}

.page-wrapper.toggled.pinned.pinned .footer {
    padding-left: 80px;
}

.page-wrapper.toggled .page-content {
    margin-top:40px;
    margin-bottom:61px;
}


/* 固定標題 */
.table-responsive.HeaderFixed {
    overflow: auto;
    width: 100%;
    height: 400px;
}

table.HeaderFixed {
    border-collapse: collapse;
    /*border-collapse: separate;*/
    /*table-layout: fixed;*/
    /*width: 200px;*/ /* 固定寬度 */
}

    table.HeaderFixed td:first-child, table.HeaderFixed th:first-child,
    table.HeaderFixed2 td:nth-child(2), table.HeaderFixed2 th:nth-child(2),
    table.HeaderFixed3 td:nth-child(3), table.HeaderFixed3 th:nth-child(3) {
        position: sticky;
        position: -webkit-sticky;
        left: 0px; /* 首行永遠固定於左 */
        z-index: 1;
        background-color: inherit;
        white-space: nowrap;
    }

    table.HeaderFixed tr:nth-of-type(odd) td:first-child, table.HeaderFixed tr:nth-of-type(odd) th:first-child,
    table.HeaderFixed2 tr:nth-of-type(odd) td:nth-child(2), table.HeaderFixed2 tr:nth-of-type(odd) th:nth-child(2),
    table.HeaderFixed3 tr:nth-of-type(odd) td:nth-child(3), table.HeaderFixed3 tr:nth-of-type(odd) th:nth-child(3) {
        background-color: white;
    }

    table.HeaderFixed thead tr th,
    table.HeaderFixed tbody tr:first-child th {
        position: sticky;
        position: -webkit-sticky;
        top: 0px; /* 列首永遠固定於上 */
        z-index: 4;
        background-color: inherit;
    }

    table.HeaderFixed th:first-child,
    table.HeaderFixed2 th:nth-child(2),
    table.HeaderFixed3 th:nth-child(3) {
        z-index: 5 !important;
        background-color: inherit;
        white-space: nowrap;
    }

.radio .custom-control {
    display: inline-flex;
}

.checkbox .custom-control {
    display: inline-flex;
    vertical-align: middle;
}
