*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    /* overflow: hidden; */
    overflow-x: hidden;
    position: relative;
    left: 0px;
    top: 0px;
    font-family: sans-serif, serif, "Noto Sans CJK TC", "Microsoft JhengHei", PingFang, STHeiti;
    letter-spacing: .05rem;
    line-height: 1.5;
}

p {
    font-size: 14px;
}

#container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

header {
    flex: 0 0 auto;
    box-shadow: #aaaaaa 1px 0px 3px;
}

.main {
    flex: 1 0 auto;
}

footer {
    flex: 0 0 auto;
    width: 100%;
    background-color: #415588;
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: small;
}

footer p {
    margin-bottom: 0%;
    color: #fff;
}

/* 初始設定 end */
.material-icons, .material-icons-outlined, .material-icons-round, .material-icons-sharp, .material-icons-two-tone {
    display: inline-block;
    font-size: inherit;
    line-height: inherit;
    vertical-align: middle;
    transform: translateY(-.1em);
}

.content {
    margin: 0 auto;
    max-width: 1920px;
}

ul,
ol {
    margin-bottom: 1rem;
    margin-left: 2rem;
    color: #6A6A6A;
}

ul {
    list-style: disc;
}

ul li,
ol li {
    margin-bottom: .5rem;
    line-height: 1.5;
}

a {
    text-decoration: none;
    display: inline-block;
}

.fs-14 {
    font-size: 14px;
}

.fs-12 {
    font-size: 0.75rem;
}

.fs-20 {
    font-size: 1.25rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.5;
}

h2 {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.5;
}

h3 {
    font-size: 1.75rem;
    font-weight: bold;
    line-height: 1.5;
}

h4 {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.5;
}

h5 {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.5;
}

h6 {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.5;
}

.fc-blue {
    color: #266798;
}

.small-title {
    font-size: small;
    font-weight: bold;
}

/* button start */
.btn-sm {
    padding: .25rem .75rem;
    margin: 0 .25rem 1rem .25rem;
    border-radius: .25rem;
    font-size: small;
}

.btn-sm-round {
    padding: .25rem .75rem;
    margin: 0 .25rem 1rem .25rem;
    border-radius: 1rem;
    font-size: small;
}

.btn-cancel {
    background-color: #ffffff;
    color: #424242;
    border: 1px solid lightgray;
}

.btn-cancel:hover {
    background-color: lightgray;
    color: #fff;
    border: 1px solid lightgray;
}

.btn-blue,
.btn-blue-outlined.active {
    background-color: #2D82C2;
    color: #fff;
    border: 1px solid #2D82C2;
}

.btn-blue:hover,
.btn-blue-outlined:hover {
    background-color: #3699e5;
    color: #fff;
    border: 1px solid #3699e5;
}

.btn-blue:active,
.btn-blue-outlined:active {
    background-color: #286da2;
    color: #fff;
    border: 1px solid #286da2;
}

.btn-blue-outlined {
    background-color: #fff;
    color: #2D82C2;
    border: 1px solid #2D82C2;
}

.btn-red {
    background-color: #ac0101;
    color: #fff;
    border: 1px solid #ac0101;
}

.btn-red:hover,
.btn-red-outlined:hover {
    background-color: #cc0101;
    color: #fff;
    border: 1px solid #cc0101;
}

.btn-red:active,
.btn-red-outlined:active {
    background-color: #800808;
    color: #fff;
    border: 1px solid #800808;
}

.btn-red-outlined {
    background-color: #fff;
    color: #ac0101;
    border: 1px solid #ac0101;
}
.list-btn{
    border: none;
    background-color: rgba(255, 255, 255, 0);
    font-size: 1.25rem;
    margin: 0 .25rem;
    color: #646464;
}
.list-btn:hover{
    color: #2D82C2;
}
.red-hover:hover{
    color:#ac0101;
}
/* button end */
/* component-delete-btn start */
.btn-delete {
    color: #C4C4C4;
    position: absolute;
    z-index: 3;
}

.btn-delete:hover {
    color: red;
}

.dis-connect {
    font-size: 14px;
    color: red;
    font-weight: bold;
}

/* component-delete-btn end */

/* navbar start */
.sidebar-btn {
    border: none;
    background-color: rgba(255, 255, 255, 0);
    font-size: 1.5rem;
    color: #fff;
}

.sidebar-btn:hover {
    text-shadow: 1px 1px gray;
}

.navbar {
    background-color: #2D82C2;
    color: #fff;
    padding: .5rem 0;
}

/* navbar end */

/* form-group start */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    margin-bottom: .5rem;
}

.form-group label {
    margin-bottom: .5rem;
}

/* form-group end */

/* side-bar start */
.left-sidebar {
    background-color: #F0F9FF;
    height: calc(100vh - 46px);
    max-width: 12rem;
}

.right-content {
    height: calc(100vh - 46px);
    padding: 1rem 1.5rem;
}

ul.sidebar {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.sidebar-ul-disc {
    margin-left: 2.5rem;
    padding: 0;
}

.sidebar-first-layer li {
    border-top: 1px solid #CBD4DA;
    color: #646464;
    font-size: 14px;
    margin-bottom: 0;
}
.sidebar-first-layer li:last-child{
    border-bottom: 1px solid #CBD4DA;
}

.sidebar-second-layer li {
    border-bottom: none;
    border-top: none;
}

.sidebar-second-layer li:last-child {
    border-bottom: none;
    margin-bottom: .5rem;
}

.sidebar-first-layer li a,
.item-toggle-btn {
    color: #646464;
    display: block;
    padding: 1rem 0 1rem 1rem;
}

.sidebar-second-layer li a {
    color: #646464;
    padding: .5rem 0;
    font-size: 12px;
    line-height: 1;
    font-weight: normal;
    border-bottom: none;
    display: block;
}
.sidebar-second-layer li a:first-child{
    padding-top: 0;
}
.sidebar-first-layer li:hover {
    color: #266798;
    font-weight: bold;
    background-color: #e3f1fe;
}

.sidebar-first-layer li a:hover,
.sidebar-second-layer li a:hover {
    color: #266798;
}

.sidebar-second-layer li a:hover {
    font-weight: bold;
    background-color: #F0F9FF;
}


.item-toggle-btn {
    cursor: pointer;
}

/* category open & close icon start */
[aria-expanded="false"] .menu__icon--open {
    display: inline;
    float: right;
    padding-right: .75rem;
    padding-top: .75rem;
}

[aria-expanded="false"] .menu__icon--close {
    display: none;
}

[aria-expanded="true"] .menu__icon--open {
    display: none;
}

[aria-expanded="true"] .menu__icon--close {
    display: inline;
    float: right;
    padding-right: .75rem;
    padding-top: .75rem;
}

table,
th,
td {
    border: 1px solid lightgray;
    font-size: small;
}

table tr td {
    padding: .5rem;
}

/* category open & close icon end */
/* sidebar end */
/* input start */
.search-area {
    border-bottom: 1px solid lightgray;
    margin-bottom: .75rem;
    display: flex;
    align-items: end;
}

input[type=radio] {
    width: 14px;
    height: 14px;
}

.form-check-label {
    font-size: 14px;
}

.form-check .form-check-input {
    margin-left: -1.25rem;
}

.form-check-inline {
    margin-right: .25rem;
}

.search-selection {
    margin: 0 .5rem 0 0;
}

.functional-area {
    display: flex;
    justify-content: end;
    align-items: center;
}
.content-functional-area{
    border-top: 1px solid lightgray;
    margin: 3rem  0 2rem 0;
    padding-top: 1rem;
}
textarea, input, select, table {
    margin-bottom: 1rem;
}

/* input end */
/* dataTable start */
table.dataTable {
    border: none;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_paginate {
    font-size: small;
}

table.dataTable td {
    background-color: rgba(0, 0, 0, 0);
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #D9D9D9;
}

table.dataTable tbody tr:hover {
    background-color: #F0F9FF;
}

table.dataTable tbody td {
    padding: .75rem .5rem;
    line-height: 1.25rem;
}

.date-lable {
    display: none;
}

table.dataTable thead th {
    padding: .5rem .5rem;
    border: none;
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    background-color: #2D82C2;
}

table.dataTable thead th:first-child {
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
}

table.dataTable thead th:last-child {
    border-top-right-radius: .25rem;
    border-bottom-right-radius: .25rem;
}

table.dataTable tbody td {
    padding: .75rem .5rem;
    border-bottom: 1px solid #D9D9D9;
    font-size: 14px;
    color: #3B3B3B;
}

table.dataTable.no-footer {
    border-bottom: none;
}

.dataTables_wrapper .dataTables_paginate {
    float: none;
    text-align: center;
    margin-top: 5rem;
}

table.dataTable textarea,
table.dataTable input,
table.dataTable select,
table.dataTable table {
    margin-bottom: 0rem;
}

/* dataTable end */
/* nav-tab start */
ul.nav,
li.nav-item {
    margin-bottom: 0;
}

.nav-link {
    font-size: small;
}

button.nav-link {
    color: #495057;
}

.nav-tabs .nav-link.active {
    color: #2D82C2;
    font-weight: bold;
}

/* nav-tab end */
