:root {
    --navheight: 50px;
}

#scutp,
html,
body {
    height: 100%;
    background: #fffbf8;
}

th {
    white-space: nowrap;
    vertical-align: middle;
}

nav.navbar {
    position: fixed;
    z-index: 2;
    width: 100%;
    top: 0;
    box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
    /* opacity: .8; */
}

#scutp {
    /* height: 100vh; */
    /* overflow-y: scroll; */
}

.sidebar {
    min-width: 100%;
    max-width: 100%;
    padding: 25px;
    min-height: 93vh;
    color: #000;
    transition: all 0.3s;
    margin-left: -100%;
    float: left;
    position: absolute;
    z-index: 1;
}

.sidebar.active {
    margin-left: 0px;
    word-wrap: break-word;
}

.wrapper {
    display: flex;
    /* margin-top: var(--navheight) */
}

@media (max-width: 991px) {
    .wrapper {
        /* margin-top: 90px; */
        /* 這個值應該與你在小屏幕下 navbar 的高度相同 */
        /* 其他的 CSS */
    }
}

@media (min-width: 470px) {
    .wrapper {
        /* margin-top: 80px; */
    }
}

@media (min-width: 576px) {
    .sidebar {
        min-width: 50%;
        max-width: 50%;
        padding: 25px;
        min-height: 93vh;
        color: #000;
        transition: all 0.3s;
        margin-left: -50%;
        float: left;
        position: absolute;
        z-index: 1;
    }
}

@media (min-width: 768px) {
    .sidebar {
        min-width: 30%;
        max-width: 30%;
        padding: 25px;
        min-height: 93vh;
        color: #000;
        transition: all 0.3s;
        margin-left: -30%;
    }
}

@media (min-width: 992px) {
    .sidebar {
        min-width: 25%;
        max-width: 25%;
        padding: 25px;
        min-height: 93vh;
        color: #000;
        transition: all 0.3s;
        margin-left: -25%;
        position: static;
    }
}

@media (min-width: 1200px) {
    .sidebar {
        min-width: 20%;
        max-width: 20%;
        padding: 25px;
        min-height: 93vh;
        color: #000;
        transition: all 0.3s;
        margin-left: -20%;
    }
}

div {
    font-family: Helvetica, Arial, "微軟正黑體", "Microsoft JhengHei", sans-serif;
}

.dropdown-item {
    white-space: normal;
}

.tabs {
    margin-top: 14px;
    padding-top: 8px;
    display: flex;
    flex-wrap: nowrap;
    border-bottom: 2px solid #666666;
    background-color: #BBBBBB;
}

.tabs label {
    border-radius: 8px 8px 0 0;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 8px;
}

.tabs label:hover {
    color: #FFFFFF;
    background-color: #7eb3a5;
}

.tabs label[tag="true"] {
    background-color: #99ddcc;
}

.pageItem .pageContent {
    height: calc(100vh - 152px);
    overflow: auto;
}

.pageItem .pageControl {
    position: fixed;
    display: flex;
    width: 100%;
    height: 46px;
    justify-content: center;
    bottom: 0;
    background-color: #BBBBBB;
    border-top: 2px solid #666666;
}

div .titleTable {

    font-size: 18px;
    background-color: #69c;
    color: black;
    text-align: center;
    font-weight: bold;
}

.titleTable td,
.titleTable th {
    border: 1px solid #bbb;
    padding: 8px;
}

.applyTable th {
    width: 15%;
}

.applyTable td {
    width: 35%;
}

.modal-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 80%;
    height: 80%;
    padding: 16px;
    overflow: auto;
    background-color: #fff;
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    margin: 8px 8px 0 0;
    cursor: pointer;
}

.modal-close::hover {
    color: gray;
}

.dropdown-content {
    word-wrap: break-word;
}

#content {
    padding-bottom: 1em;
    position: relative;
    width: 100%;
    /* padding: 20px; */
    height: fit-content;
    /* min-height: 100vh; */
    transition: all .3s;
    background: #fffbf8;
}

@media (min-width: 1200px) {
    .content-with-sidebar {
        padding-left: 20rem;
    }
}


.dropdown__header {
    cursor: pointer;
    line-height: 50px;
    padding-left: 10px;
    padding-right: 50px;
    position: relative;
    text-overflow: ellipsis;
}

.dropdown__header i.fa {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s;
}

.dropdown__header.is-active+.dropdown__content {
    height: auto;
    opacity: 1;
    visibility: visible;
}

.dropdown__content {
    height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 15px 10px;
    transition: opacity 0.3s;
    visibility: hidden;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

a.btn-secondary {
    color: #fff !important;
    background-color: var(--button) !important
}

.currentbgcolor {
    background-color: #a1a7ac;
}

.navbar-bgc {
    background-color: var(--navbar);
}

.sidebar-bgc {
    background-color: var(--sidebar);
}

table thead tr:first-of-type {
    background-color: var(--title) !important
}

.text-color {
    color: var(--text)
}

button.dt-button {
    color: #fff !important;
    background-color: var(--button) !important;
}

table tbody td {
    vertical-align: middle !important;
}

[v-cloak] {
    display: none;
}

.dropdown__header>.caret {
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 1.25rem;
    border: none;
}

/* .dropdown__header > .caret:before {
    display: block;
    text-align: center;
    transition: all 0.2s linear;
    opacity: 0.5;
} */

a {
    cursor: pointer;
    text-decoration: none;
}

/* 這將會改變整個網頁的滾動條樣式 */
.el-menu-vertical-demo::-webkit-scrollbar-track-piece {
    background: #d3dce6;
}

.el-menu-vertical-demo {
    scrollbar-width: thin;
    /* "thin" 或 "auto" 或 "none" */
    scrollbar-color: #99a9bf #d3dce6;
    /* 滑塊顏色 瀏覽軌道顏色 */
}

.el-menu-vertical-demo::-webkit-scrollbar {
    /* width: 10px; */
    width: 6px;
    /* 這會改變滾動條的寬度 */
}

.el-menu-vertical-demo::-webkit-scrollbar-track {
    /* background: #f1f1f1; */
    /* 這會改變滾動條背景的顏色 */
}

.el-menu-vertical-demo::-webkit-scrollbar-thumb {
    /* background: #888; */
    background: #99a9bf;
    border-radius: 20px;
    /* 這會改變滾動的部分的顏色 */
}

.el-menu-vertical-demo::-webkit-scrollbar-thumb:hover {
    /* background: #555; */
    /* 這會改變滾動的部分在滑鼠經過時的顏色 */
}

table.dataTable.no-footer {
    border-bottom: transparent;
}

.bts {
    /*按鈕及搜尋框位置*/
    justify-content: space-between;
}

/* .right-border-only {
  border-left: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-right: 1px solid #d1dbe5;
} */


.is-selected {
    background-color: #2182b0;
    color: #fff;
}


/* 默认样式 */
.custom-dialog .el-dialog {
    width: 90%;
}

/* 大屏幕 */
@media (min-width: 1200px) {
    .custom-dialog .el-dialog {
        width: 30%;
    }
}

/* 中屏幕 */
@media (min-width: 992px) and (max-width: 1199px) {
    .custom-dialog .el-dialog {
        width: 70%;
    }
}

/* 小屏幕 */
@media (max-width: 991px) {
    .custom-dialog .el-dialog {
        width: 90%;
    }
}

/* .chart > div, */
.chart>div>canvas {
    width: 100% !important;
}



.banner {
    background-color: #ffffff !important;
    padding-top: 130px;
    padding-bottom: 120px;
}


.banner h1 {
    background-image: url(images/logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    padding: 30px 30px;
    font-size: 48px;
    font-weight: bolder;
    color: #3b84a5 !important;
}



main {
    background-color: #fffbf8;
}

.banner {
    background-color: #ffffff !important;
    padding-top: 100px;
    padding-bottom: 120px;
    background-image: url(images/bg001.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right;
}


.pre-wrap {
  white-space: pre-wrap; /* 保持空格和换行符，并正常换行 */
}