*,
::after,
::before {
    /* transition: all 0.3s; */
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 2px;
    height: 2px;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
    border-bottom-left-radius: 2px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.32);
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
    border-bottom-left-radius: 2px;
}

::-webkit-scrollbar-track {
    background: rgb(245, 245, 245);
}

ol ol,
ol ul,
ul ol,
ul ul,
ul {
    margin-bottom: 0;
}

body {
    background-color: #fbfbfb;
}

body {
    background-image: url(../img/teacher_backgound.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

a,
a:hover {
    color: black;
}

a {
    color: #666;
    font-weight: bold;
    /* font-size: 1.1em; */
}

a:hover,
a:focus {
    background: #f9f1e4;
}

.btn {
    font-size: 1em;
}

.flex-1 {
    flex: 1;
}

.has_itemul ul {
    display: none;
}

/*-------------------------------------------------------------------*/
/*部分選單和主頁面選項有下拉選單時 超連結獨佔一行*/
.sidebar a,
.a-block a,
.list-unstyled a {
    padding: 1rem;
    display: block;
}

/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
/*login-start*/

.form-group {
    padding: 0.5em 0em;
}

.login-logo img {
    max-width: 100%;
}

/*-------------------------------------------------------------------*/
/*main start*/

/*處室名稱*/

div.TCUoffice_img {
    display: flex;
    margin: 0 auto;
    flex-direction: column;
    max-width: 150px;
    align-items: center;
}
div.TCUoffice_img .text-center {
    font-size: 1.1em;
    font-weight: bold;
}

/*處室名稱用圖片搭配的樣式，尚未用上 end*/

main {
    padding-top: 90px;
    margin-top: 0;
    /* background: #f3f0ec; */
}
#Main_item .col > ul.TcuOffice_btn {
    /* padding: 1em; */
    border-radius: 10px;
    /* border: 1px solid #e3e3e3; */
    background: #fff;
    box-shadow: rgba(60, 60, 60, 0.1) 10px 10px 10px;
    list-style: none;
    padding: 0;
    border-radius: 10px;
}

/*Medium devices (tablets, large than 992px)*/
@media (min-width: 991.99px) {
    main {
        padding-left: 240px;
    }
}

/*Medium devices (tablets, less than 992px)*/
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 991.98px) {
    body.iosScroll {
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
    }

    main {
        padding-top: 100px;
        margin-top: 0;
        padding-bottom: 100px;
    }
}

/*main body end*/

/*-------------------------------------------------------------------*/

/*Navbar-start*/
.badge-notification {
    --mdb-badge-font-size: 0.5rem;
    --mdb-badge-padding-x: 0.5em;
    --mdb-badge-padding-y: 0.5em;
}

.navbar {
    padding-bottom: 0.5rem;
}

.navbar-brand {
    padding: 0;
}

.navbar-brand a {
    padding: 0;
}

.navbar-brand img {
    max-width: 100%;
    height: auto;
    max-height: 40px;
}

.navbar-user i {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.5em;
}

/*使用者區塊 start*/
.navbar-user {
    padding: 0 1em;
}

.navbar-expand-lg .navbar-nav .nav-link {
    padding: 0em 1em;
    padding-top: 0.1em;
}

.nav-link,
.nav-link i {
    margin: 0;

    margin-right: 0 !important;
    text-align: center;
}

.nav-link {
    padding: 0 1.5em;
    flex-direction: column;
}

/*使用者區塊選單子物件均分 start*/
.navbar-user a.dropdown-item {
    display: flex;
    flex-direction: initial;
    align-content: stretch;
    align-items: center;
    justify-content: space-evenly;
}

/*使用者區塊選單子物件均分 end*/
.nav-link div {
    display: block;
    font-size: 0.8rem;
}

.dropdown-divider {
    margin: 0px;
}

/*使用者區塊 end*/
/*Medium devices (tablets, less than 992px)*/
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand:focus,
    .navbar-brand:hover,
    .navbar-brand {
        display: flex;
        margin: 0;
        padding: 0 0.5em;
        justify-content: center;
    }

    .navbar-brand img {
        max-width: 100%;
        height: auto;
    }

    .nav-mb-order-1 {
        order: 1;
        width: 100%;
    }

    .nav-mb-order-2 {
        order: 2;
    }

    .nav-mb-order-3 {
        order: 3;
    }
}

/*Medium devices (tablets, less than 992px)*/
@media (max-width: 991.98px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding: 1em;
    }

    a.nav-link {
        padding: 0.3em;
        padding-top: 0.5em;
    }

    .navbar-user {
        padding: 0;
        position: fixed;
        bottom: 0px;
        width: 100%;
        background: #fff;
        margin: 0;
        /* padding: 10px; */
        left: 0;
        display: flex;
        justify-content: space-around;
    }

    .navbar-user li {
        flex: 1;
        text-align: center;
    }

    .navbar-nav .dropdown-menu {
        width: 100%;
    }

    .fa-solid,
    .fas {
        font-size: 1.2rem;
    }
}

/*Navbar-end*/
/*-------------------------------------------------------------------*/

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 58px 0 0;
    /* Height of navbar */
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 5%), 0 2px 10px 0 rgb(0 0 0 / 5%);
    width: 240px;
    z-index: 600;
}

.sidebar .list-group-item {
    padding: 0;
}

/* .sidebar a:hover,.sidebar a:focus{
    padding-left: 30px;
} */

.sidebar {
    padding-top: 60px;

    padding-bottom: 90px;
    /*閃開底部選單用*/
}

.sidebar .active {
    border-radius: 5px;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

.sidebar .list-group-item:hover {
    padding-left: 1.1em;
    background-color: #f9f1e4;
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    /* Scrollable contents if viewport is shorter than content. */
}

.position-sticky {
    overflow-y: auto;
    height: 100%;
    height: 100vh;
    padding-bottom: 9em;
}

/*增加選項間距*/
.col {
    padding: 0.5em;

    /* border-radius: 10px;
    border: 1px solid #aaa; */
}

.col > div {
    /* padding: 1em; */
    border-radius: 10px;
    /* border: 1px solid #e3e3e3; */
    background: #fff;
    box-shadow: rgba(60, 60, 60, 0.1) 10px 10px 10px;
}

/* 選單鎖定start */
@media (max-width: 991.98px) {
    .sidebar {
        left: -100vw;
        /*從右邊進來*/
        width: 100vw;
        height: 100%;
        height: 100vh;

        transition: all 0.3s;
        display: block !important;
        position: fixed;
        /* padding-top: 0px; */
        opacity: 0;
        z-index: -1;
    }

    .sidebar_hover_fromRight {
        left: 0;
        position: fixed;
        display: block;
        opacity: 1;

        width: 100%;
        transition: all 0.3s;
        padding-bottom: 90px;
        z-index: 1030;
    }
}

/* 選單鎖定end */
/*-------------------------------------------------------------------*/
/*下拉選單start*/

ul li.active > a,
a[aria-expanded="true"] {
    /* color: #fff;
    background: #6d7fcc; */

    background: none;
}

a[data-toggle="collapse"] {
    position: relative;
    display: block;

    /* margin-right: 20px; */
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    /* right: -15px; */

    right: 20px;
    transform: translateY(-50%);
}

ul.list-unstyled a {
    padding: 0.5em 1.5em;
}

ul.list-unstyled li:last-child a {
    padding-bottom: 0.8em;
}

/* 榆芳有進行更改---開始----*/

.dropdown-toggle {
    white-space: wrap;
}

a[data-toggle="collapse"] {
    position: relative;
    display: block;
    padding-right: 25px;
}

.dropdown-toggle:after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "\2b";
    border: 0;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1em;
    color: #e08532;
}

a[aria-expanded="true"]:after {
    content: "\f068";
}

/* 榆芳有進行更改---結尾----*/

/*下拉選單over*/
/*-------------------------------------------------------------------*/
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
}
.btn-danger {
    --mdb-btn-bg: #e08532;

    --mdb-btn-box-shadow: 0 4px 9px -4px 0 4px 9px -4px #d38f22;
    --mdb-btn-hover-bg: #d38f22;

    --mdb-btn-focus-bg: #d38f22;

    --mdb-btn-active-bg: #d38f22;

    --mdb-btn-box-shadow-state: 0 8px 9px -4px rgba(211, 143, 34, 0.3),
        0 4px 18px 0 rgba(211, 143, 34, 0.2);
}
/*回頂端按鈕end*/

INPUT:-webkit-autofill,
SELECT:-webkit-autofill,
TEXTAREA:-webkit-autofill {
    animation-name: onautofillstart;
}

INPUT:not(:-webkit-autofill),
SELECT:not(:-webkit-autofill),
TEXTAREA:not(:-webkit-autofill) {
    animation-name: onautofillcancel;
}

@keyframes onautofillstart {
}

@keyframes onautofillcancel {
}
