/* 隱藏左側選單的 Dashboard (儀表盤) */
.nav-sidebar > .nav-item:first-child {
    display: none !important;
}

/* 隱藏側邊欄上方的 User Panel (admin 使用者區塊) 以防止載入時版面跳動 */
.user-panel {
    display: none !important;
}

/* 放大側邊欄字體並使其固定位置 */
.main-sidebar {
    position: fixed !important;
    top: 57px !important; /* 避免擋住 navbar/logo 區塊 */
    bottom: 0;
    left: 0;
    height: calc(100vh - 57px) !important;
    overflow-y: auto !important; /* 內容超出時內部滾動 */
}

/* 確保側邊欄最上方的 Logo 在固定模式下也能正常顯示並置頂，不被 menu 覆蓋 */
.brand-link {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 250px;
    height: 57px;
    z-index: 1035;
}

.main-sidebar .nav-sidebar .nav-link {
    font-size: 1.1rem !important;
    padding: 0.6rem 1rem !important;
}

.main-sidebar .nav-sidebar .nav-link p {
    font-size: 1.1rem !important;
}

.main-sidebar .nav-sidebar .nav-icon {
    font-size: 1.2rem !important;
    margin-right: 0.6rem !important;
}

.main-sidebar .nav-sidebar .nav-header {
    font-size: 1rem !important;
    padding-top: 1rem;
    padding-bottom: 0.4rem;
    letter-spacing: 0.3px;
}

.main-sidebar .brand-text {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}

/* 職務別 欄位：禁止換行 */
#result_list th.column-job_type,
#result_list td.field-job_type {
    white-space: nowrap !important;
}

/* 職等 欄位：禁止換行 */
#result_list th.column-position,
#result_list td.field-position {
    white-space: nowrap !important;
}

/* 登入頁面 Logo 大小微調 */
.login-logo img {
    max-height: 120px !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

/* 後台左側選單上方 Site Logo 大小控制 */
.brand-link .brand-image {
    max-height: 38px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* 隱藏全站麵包屑 */
.breadcrumb {
    display: none !important;
}

/* 隱藏右上角使用者選單中的「修改密碼」與「查看個人資料」 */
#jazzy-usermenu a[href*="password_change"],
#jazzy-usermenu a[href*="auth/user/"] {
    display: none !important;
}

/* 重新整理選單中的分隔線 */
#jazzy-usermenu .dropdown-divider {
    display: none !important;
}
#jazzy-usermenu .dropdown-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}
#logout-form {
    border-top: 1px solid #e9ecef;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* 調整表單欄位下方提示文字 (help-text) 的間距 */
.form-text,
.form-text.text-muted,
.help-block,
.help-text,
.help {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
}

/* 清除輸入框底部的多餘間距 */
textarea, 
input[type="text"], 
.form-control {
    margin-bottom: 0 !important;
}

/* 減少整個 form-group 區塊的底部間距 */
.form-group {
    margin-bottom: 10px !important;
    padding-bottom: 0 !important;
}

.form-group .row {
    margin-bottom: 0 !important;
}

.fieldBox {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
