body {
    font-family: Microsoft JhengHei;
}

.blank-page {
    height: 100vh !important;
}

.main-sidebar:hover .nav-sidebar .menu-rows-case > p:nth-child(2){
    animation: sidebar-p-fade-right .5s forwards !important;
    transform: translateX(18px) !important;
    display: block !important;
}

.main-sidebar:hover .nav-sidebar .system-icon5 > img{
    animation: sidebar-fade-right .5s forwards !important;
}

.main-sidebar a {
    animation: delay-pointer-none .5s forwards;
}
.main-sidebar:hover a {
    animation: delay-pointer-auto .5s forwards;
}

@keyframes delay-pointer-auto {
    0% {
        pointer-events: none;
    }
    50% {
        pointer-events: none;
    }
    100% {
        pointer-events: auto;
    }
}

@keyframes delay-pointer-none {
    0% {
        pointer-events: none;
    }
    100% {
        pointer-events: none;
    }
}

.sidebar .nav-sidebar .pointer-auto {
    pointer-events: auto !important;
}


@media (min-width: 1200px) {
    .nav-top-ata .dropdown-menu {
        display: none !important;
    }
}
@media (max-width: 1200px) {
    .nav-top-ata {
        cursor: default;
    }
    .nav-top-ata .nav-link-top {
        pointer-events: none;
    }
}

@media (min-width: 768px) {
    .nav-top-dep .dropdown-menu {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .nav-top-dep {
        cursor: default;
    }
    .nav-top-dep .nav-link-top {
        pointer-events: none;
    }
}

@media (min-width: 576px) {
    .nav-top-tea .dropdown-menu {
        display: none !important;
    }
}
@media (max-width: 576px) {
    .nav-top-tea {
        cursor: default;
    }
    .nav-top-tea .nav-link-top {
        pointer-events: none;
    }
}

.font-note {
    color: red;
    font-size: 12px;
    font-weight: bold;
}

.card-background {
    background: url("../img/login/login-01.png") no-repeat center;
    background-size: cover;
}

.collage-title-login{
    font-size: 1.6rem;
    font-weight: bold;
}

.nav-top-black, .nav-top-white {
    width: 22px;
    height: 22px;
}

.initial-table td, .initial-table th{
    padding: 2px;
    vertical-align: middle;
}

.initial-div {
    background-color: #e4e4f7;
    padding: 0 8px 8px;
    border-radius: 20px;
}

.login-box, .register-box , .errorPages-box{
    /*width: 100%;*/
    width: 768px;
}
/*
.login-box, .register-box {
    width: 100%;
    width: 428px;
}*/
/*
.login-page, .register-page {
    background: radial-gradient(circle farthest-corner at left, #86D5ED, #7C93F5);
}
*/
.login-page, .register-page {
    background: radial-gradient(circle farthest-corner at left, #55B0C3, #AFE7EC);
}

.login-logo, .register-logo {
    text-align: left;
    display: inline;
    vertical-align: bottom;
}

.login-title {
    font-size: 1.5rem;
    font-weight: bolder;
    color: #616161;
}
/*
.login-box .card {
    border-top: 0 solid rgba(0, 0, 0, .125);
    border-bottom: 1.5em solid #EA8B0F;
    background: #ebeeea;
    border-radius: 10px;
}
*/
.login-box .card-header {
    border-bottom: 0 solid rgba(0, 0, 0, .125);
    padding-bottom: 0.15rem;
}

.login-college {
    background: #E2E3e1;
    font-size: 1.4rem;
}

.btn-login{
    background: linear-gradient(to bottom,#24a1fb, #022e95);
    border: 0px;
    color: #FFF;
    font-weight: bold;
}

.btn-login:hover{
    background: linear-gradient(#1378f7, #021b6e);
    color: #FFF;
    font-weight: bold;
}

.btn-login:focus{
    background: linear-gradient(#1378f7, #021b6e);
    color: #FFF;
    font-weight: bold;
}

.btn-login:active{
    background: linear-gradient(#ee91b3, #b3047d);
    color: #FFF;
    font-weight: bold;
}
/*
.btn-login {
    background: #EA8B0F;
    font-size: 1.5rem;
    color: #FFF;
    padding: 1rem 0;
    font-weight: bold;
    border-radius: 10px
}
*/
.login-input {
    background: #E2E3e1;
}

.initial-input {
    background: #E2E3e1;
}

.login-input-text {
    position: absolute;
    right: 20px;
    top: 10px;
}

.login-lock {
    color: #EA8B0F;
}


.elevation-4 {
    background: #389BED;
}

[class*=sidebar-dark] .brand-link {
    border: 0;
    background-image: url("../img/template/top.png");
}

.logo-title {
    font-size: 20px;
    font-weight: bolder;
    text-align: center;
    height: 50px;
}

.logo-title-text {
    margin-top: 10px;
    margin-bottom: 10px;
}

[class*=sidebar-dark] .user-panel {
    border-bottom: 1px solid rgba(255,255,255,0.8);
}

div.dropdown > .dropdown-toggle::after{
    border-top-color: white;
    border-bottom-color: white;
}

.dropdown-menu {
    animation: fade-in 0.3s forwards;
    margin-top: 0;
    min-width: 0;
}

.dropdown:hover .dropdown-menu{
    display: block;
}

@keyframes fade-in {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    padding: 0 .5rem;
}

.nav-custom {
    background: #88cfe2;
    top: 0;
    right: 0;
    left: 0;
    height: calc(3.5rem + 1px);
    border-bottom: none;
}

.navbar-light .navbar-nav .nav-link {
    color: #FFF;
    font-size: 1.1rem;
}

.navbar-light .navbar-nav .nav-link-top {
    color: black;
    font-size: 1.1rem;
}

.navbar-light .navbar-nav .active > .nav-link, .navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .nav-link.show, .navbar-light .navbar-nav .show > .nav-link {
    color: #FFF;
}

.nav-item-list {
    position: relative;
    padding: .5rem;
    background: url(../img/template/line.png) right no-repeat;
}

.nav-item:first-child > .nav-item-list, .nav-item:last-child > .nav-item-list {
    background: none;
}

.nav-active {
    background-color: #fff0f02b;
    position: absolute;
    width: 100%;
    height: 100%;
    border-top: .5rem solid #FFF;
    margin-top: -.5rem;
    display: none;
}

.nav-active-gradient {
    background: linear-gradient(90deg, #e376f2, #637bef);
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.system-icon > img {
    margin: -6px 2px 0 0;
}

.system-icon2 > img {
    margin: -3px 0 0 2px;
}

.system-icon3 > img {
    margin: -6px 10px 0 0;
}

.system-icon4 > img {
    margin: -6px 10px 0 0;
}

.system-icon5 > img {
    margin: -5px 2px 0 0;
}

.nav-signout {
}

.nav-info {
    background-color: #FFF;
    border-top-left-radius: 1.5rem;
    border-bottom-left-radius: 1.5rem;
    position: absolute;
    right: 87px;
    z-index: -1;
    min-width: 400px;
}

.nav-info-detail {
    font-size: 1.1rem;
    height: 2.5rem;
    position: relative;
    padding: .5rem 1rem;
}

[class*=sidebar-dark-] .sidebar a {
    color: #fff;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active, .sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active {
    background-color: #ffde00;
    color: black;
}

[class*=sidebar-dark-] .nav-treeview > .nav-item > .nav-link {
    color: #fff;
}

.menu-rows-case, .menu-rows-case1 {
    display: inline;
}

.menu-rows-case > p:nth-child(2) {
    margin-left: 58px;
}

.menu-rows-case1 > p:nth-child(2) {
    margin-left: 32px;
}

.navbar-light .navbar-nav .nav-link-top:focus, .navbar-light .navbar-nav .nav-link-top:hover {
    background: linear-gradient(90deg, #f7bc50, #eb587a);
    color: #FFF;
    border-radius: 8px;
}

.nav-treeview > .nav-item{
    /*background: url(../img/template/line2.png) bottom right no-repeat;*/
    border-bottom: 1px solid rgba(255,255,255,0.8);
}

.nav-treeview > .nav-item:last-child {
    /*background: none;*/
    border-bottom: 0;
}

.docread-card{
    cursor: pointer;
}

.modal a.close-modal[class*="icon-"] {
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    color: #fff;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    text-indent: 0;
    background: #900;
    border: 2px solid #fff;
    -webkit-border-radius:  26px;
    -moz-border-radius:     26px;
    -o-border-radius:       26px;
    -ms-border-radius:      26px;
    border-radius:          26px;
    -moz-box-shadow:    1px 1px 5px rgba(0,0,0,0.5);
    -webkit-box-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    box-shadow:         1px 1px 5px rgba(0,0,0,0.5);
}

.modal-xl {
        max-width: 90%;
    }
@media (min-width: 1300px) {
    
    .modal-mdx {
        max-width: 80%;
    }
}

.btn-doc-save{
    display: none;
}

#CourseModal .card-header ,#HistoryModal .card-header{
    background: linear-gradient(45deg, #69d9dd, #FFF);
}

#CourseModal .card-title ,#HistoryModal .card-title{
    font-weight: 600;
}

#CourseModal .table-striped > tbody > tr:nth-child(2n+1) > td, #CourseModal .table-striped > tbody > tr:nth-child(2n+1) > th {
    background-color: #fae9d8;
}

#CourseModal .table-striped > tbody > tr:nth-child(2n) > td, #CourseModal .table-striped > tbody > tr:nth-child(2n) > th {
    background-color: #fdfcf2;
}

.table-text-center tbody td{
    vertical-align: middle;
    text-align: center;
}

.table-vertical-center tbody td{
    vertical-align: middle;
}

.tab-hover tbody tr:hover {
    background-color: #EBC483;
}

.popover-body{
    color: red;
}

.errTxt{
		background-color:#ff8888;
}

.deplist td, .deplist th {
    border: gray solid 1pt !important;
}

.nav-tab-color .nav-item .nav-link.active {
    color: #495057;
}

.nav-tab-color .nav-item .nav-link {
    color: #0044D6;
}

.nav-tab-color .nav-item .nav-link.active:focus,
.nav-tab-color .nav-item .nav-link.active:hover {
    color: #495057;
}

.nav-tab-color .nav-item .nav-link:focus,
.nav-tab-color .nav-item .nav-link:hover {
    color: #007bff;
}


.mpt_table{
		background-color:#e2f2f7;
}

.mpt_table_td_title{
		text-align:left;
		background-color:#c5cff1;
}

@keyframes sidebar-fade-right {
    0% {
        margin-left: 0;
    }
    100% {
        margin-left: 30px;
    }
}

@keyframes sidebar-fade-left {
    0% {
        margin-left: 30px;
    }
    100% {
        margin-left: 0;
    }
}

@keyframes sidebar-p-fade-right {
    0% {
        margin-left: 0;
        opacity: 0;
    }
    100% {
        margin-left: 40px;
        opacity: 1;
    }
}

@keyframes sidebar-p-fade-left {
    0% {
        margin-left: 40px;
        opacity: 1;
    }
    100% {
        margin-left: 0;
        opacity: 0;
    }
}

/*only header 80px*/
.sidebar-mini.sidebar-collapse .sidebar, .sidebar {
    height: calc(100% - 120px);
}


.carousel .carousel-indicators li , .carouel{
    background-color: black;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000000' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000000' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
}

.orange {
    color: #ff892a;
}

.nav-top-dropdown {
    pointer-events: none;
}

[class*=icheck-]>input:first-child+input[type=hidden]+label::before, [class*=icheck-]>input:first-child+label::before{
    border: 1px solid #8a806d;
}

/*眼睛*/
#checkEye{
    width: 46px;
    cursor: pointer;
}

#ep_grd_table tr:nth-child(2n) > td {
    background-color: #fae9d8;
}

#ep_grd_table tr:nth-child(2n+1) > td {
    background-color: #fdfcf2;
}

#ep_subgrd_table tr:nth-child(2n) > td {
    background-color: #fdfcf2;
}

#ep_subgrd_table tr:nth-child(2n+1) > td {
    background-color: #fae9d8;
}

.fixed-tb-header{
    position: -webkit-sticky;
    position: sticky;
    top: 50px;
    z-index: 999;
}

.fixed-docreview-tb-header{
    position: -webkit-sticky;
    position: sticky;
    top: 50px;
    z-index: 999;
	background-color:#cce6ff;
}

.modal-full {
    min-width: 100%;
    margin: 0;
}

.modal-full .modal-content {
    min-height: 100vh;
}

/*審查考生備註顯示用*/
.tooltip-box {
    position: absolute;
    background: #fff3a1;     /* 淡亮黃色 */
    color: #333;             /* 深色文字 */
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: pre-wrap;   /* 允許換行並保留空白 */
    word-wrap: break-word;   /* 長單詞換行 */
    max-width: 300px;        /* 最大寬度 */
    display: none;
    z-index: 9999;
    border: 1px solid #d8c45a;   /* 黃金邊框 */
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    pointer-events: none;    /* 不接收滑鼠事件，避免閃爍 */
}