body {
	font-family: Microsoft JhengHei !important;
	color: #000000 !important;
}

.brand-link{
    background-color: #644e3c !important;
}

#ImgCaptcha {
	cursor: pointer;
}


/* 選單：樣式 */

.sidebar-dark-primary {
	background-color: #837569;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	color: #ffffff;
}

.sidebar-dark-primary a,
li {
	font-weight: bold !important;
}

.sidebar-dark-primary a:hover {
	cursor: pointer;
}

/* 選單：文字（hover） */

.sidebar-dark-primary .user-panel a:hover {
	color: #ffffff;
}

.sidebar-dark-primary .user-panel .status {
	color: #C2C7D0;
	background: rgba(255, 255, 255, 0.1);
}

.sidebar-dark-primary .user-panel .status:hover,
.sidebar-dark-primary .user-panel .status:focus,
.sidebar-dark-primary .user-panel .status:active {
	color: #ffffff;
	background: rgba(247, 247, 247, 0.1);
}

.sidebar-dark-primary .user-panel .dropdown-menu {
	border-color: rgba(242, 242, 242, 0.1);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.sidebar-dark-primary .user-panel .dropdown-item {
	color: #212529;
}

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link:active,
.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link:focus {
	color: #ffffff;
}

/* 選單：第一層樣式（hover）*/

.sidebar-dark-primary .nav-sidebar>.nav-item.menu-open>.nav-link,
.sidebar-dark-primary .nav-sidebar>.nav-item:hover>.nav-link {
	color: #ffffff;
	background-color: rgba(255, 255, 255, 0.1);
}

/* 選單：第一層樣式（active）*/

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active {
	color: #ffffff;
	background-color: rgba(255, 255, 255, 0.1);
}

/* 選單：第二層樣式 */

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-treeview {
	background: #ffffff
}

/* 選單：系統樣式 */

.sidebar-dark-primary .nav-header {
	color: #ffffff;
	background: inherit;
	font-size: large;
}

.sidebar-dark-primary .sidebar a {
	color: #ffffff;
}

.sidebar-dark-primary .sidebar a:hover {
	text-decoration: none;
}

.sidebar-dark-primary .nav-treeview>.nav-item>.nav-link {
	color: #000000;
}

/* 選單：第二層樣式（hover）*/

.sidebar-dark-primary .nav-treeview>.nav-item>.nav-link:hover {
	color: #ffffff;
	background-color: #a79c8d;
}

/* 選單：第二層樣式（active）*/

.sidebar-dark-primary .nav-treeview>.nav-item>.nav-link.active,
.sidebar-dark-primary .nav-treeview>.nav-item>.nav-link.active:hover {
	color: #ffffff;
	background-color: #a79c8d;
}

/*主頁背景*/

.content-wrapper {
	background: #FFFFFF !important;
}

.bg-custom {
	background-color: #675a49;
}

.nowrap {
	white-space: nowrap;
}

table th {
	white-space: nowrap;
}

pre {
	white-space: pre-wrap;
	word-wrap: break-word;
}

table .child ul {
	width: 100% !important;
}

.bg-info {
	background-color: #17a2b8 !important;
}

.bg-success {
	background-color: #76C87B !important;
}

.bg-warning {
	background-color: #FFAA07 !important;
	color: #FFFFFF !important;
}

.bg-danger {
	background-color: #FF5618 !important;
}

.navbar-light .navbar-nav .nav-link {
	color: #FFFFFF !important;
}

.elevation-4 {
	box-shadow: none;
}

.text-school {
	color: #1d3f66;
	font-weight: bold;

}
.navbar-nav > .nav-item {
    position: relative;
    transition: all 0.3s ease-in-out;
}

.navbar-nav > .nav-item:hover {
    background-color: #d1bca2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.navbar-nav > .nav-item::before {
    content: '';
    position: absolute;
    left: 50%;
    background-color: #b89575;
    transition: all 0.3s ease-in-out;
}

.navbar-nav > .nav-item:hover::before {
    width: 100%;
    left: 0;
}

.navbar-nav > .nav-link {
    color: #5a4633;
    transition: color 0.3s ease-in-out;
}

.navbar-nav > .nav-item:hover .nav-link {
    color: #ffffff;
}

.h4,
.h5,
.h6,
h4,
h5,
h6 {
	color: #231815 !important;
	font-weight: bold;
}


.school-alert-warning {
    border-color: #fffbc4 !important;
    background-color: #fffbc4 !important;
}

.form-control {
color: #000000 !important;
}

.form-check-label{
color: #000000 !important;
}

.brand-link{
    background-color: #5b3e25 !important;
}

/* 強制選單文字完全顯示並允許折行 - 更強制的選擇器 */
.main-sidebar .nav-sidebar .nav-item .nav-link p,
.sidebar-dark-primary .nav-sidebar .nav-item .nav-link p,
.sidebar .nav-sidebar .nav-item .nav-link p {
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-overflow: clip !important;
    line-height: 1.4 !important;
    text-indent: -4ch !important;
    padding-left: 4ch !important;
    margin: 0 !important;
}

/* 強制子選單文字完全顯示並允許折行 */
.sidebar-dark-primary .nav-treeview > .nav-item > .nav-link p {
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-overflow: clip !important;
    line-height: 1.4 !important;
}

/* 讓選單項目使用 flexbox，icon 對齊到第一行 */
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link {
    display: flex !important;
    align-items: flex-start !important;
}

/* 讓 icon 固定在頂部 */
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link > .nav-icon {
    flex-shrink: 0 !important;
    margin-right: 0.5rem !important;
}