/* 自訂字型大小調整 - 全域縮小 8px */

/* 基礎字型大小調整 */
body, html {
    font-size: 13px !important; /* 原本 14px 縮小到 13px */
}

/* 特別調整 AdminLTE 的基礎字型 */
.wrapper, .main-panel, .content-wrapper {
    font-size: 13px !important;
}

/* 表格字型調整 */
.table, .table td, .table th {
    font-size: 13px !important; /* 原本 14px 縮小到 13px */
    padding: 0.25rem !important; /* 減少內距 */
}

/* 表格標題 */
.table thead th {
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 0.25rem !important;
}

/* 按鈕字型調整 */
.btn {
    font-size: 13px !important; /* 原本 14px 縮小到 13px */
    padding: 0.25rem 0.5rem !important; /* 調整按鈕內距 */
}

/* 表單控制項字型調整 */
.form-control, .form-select, input, textarea, select {
    font-size: 13px !important; /* 原本 14px 縮小到 13px */
    padding: 0.25rem 0.5rem !important;
}

/* 標籤字型調整 */
label, .form-label {
    font-size: 13px !important; /* 原本 14px 縮小到 13px */
}

/* 導航列字型調整 */
.navbar, .navbar-nav .nav-link {
    font-size: 13px !important; /* 原本 14px 縮小到 13px */
}

/* 側邊欄字型調整 */
.main-sidebar, .nav-sidebar .nav-link {
    font-size: 13px !important; /* 原本 14px 縮小到 13px */
}

.sidebar .nav-link p {
    font-size: 13px !important;
}

.sidebar .brand-text {
    font-size: 15px !important;
}

/* 選單項目調整 */
.nav-treeview .nav-link {
    font-size: 12px !important;
    padding-left: 2rem !important;
}

.nav-header {
    font-size: 12px !important;
}

/* 卡片標題和內容 */
.card-title {
    font-size: 15px !important; /* 原本 16px 縮小到 15px */
}

.card-body, .card-text {
    font-size: 13px !important; /* 原本 14px 縮小到 13px */
}

/* 標題字型調整 */
h1 { font-size: 21px !important; } /* 原本 24px 縮小到 21px */
h2 { font-size: 19px !important; } /* 原本 22px 縮小到 19px */
h3 { font-size: 17px !important; } /* 原本 20px 縮小到 17px */
h4 { font-size: 15px !important; } /* 原本 18px 縮小到 15px */
h5 { font-size: 13px !important; }  /* 原本 16px 縮小到 13px */
h6 { font-size: 13px !important; }  /* 原本 14px 縮小到 13px */

/* 分頁器字型調整 */
.pagination .page-link {
    font-size: 13px !important; /* 原本 14px 縮小到 13px */
    padding: 0.25rem 0.5rem !important;
}

/* 下拉選單字型調整 */
.dropdown-menu, .dropdown-item {
    font-size: 13px !important; /* 原本 14px 縮小到 13px */
}

/* 模態框字型調整 */
.modal-title {
    font-size: 15px !important; /* 原本 16px 縮小到 15px */
}

.modal-body, .modal-footer {
    font-size: 13px !important; /* 原本 14px 縮小到 13px */
}

/* 警告訊息字型調整 */
.alert {
    font-size: 13px !important; /* 原本 14px 縮小到 13px */
    padding: 0.5rem !important;
}

/* 徽章字型調整 */
.badge {
    font-size: 11px !important; /* 原本 13px 縮小到 11px */
}

/* 工具提示字型調整 */
.tooltip {
    font-size: 13px !important; /* 原本 14px 縮小到 13px */
}

/* 麵包屑字型調整 */
.breadcrumb, .breadcrumb-item {
    font-size: 13px !important; /* 原本 14px 縮小到 13px */
}

/* 列表群組字型調整 */
.list-group-item {
    font-size: 13px !important; /* 原本 14px 縮小到 13px */
    padding: 0.5rem !important;
}

/* 進度條文字調整 */
.progress {
    font-size: 11px !important; /* 原本 13px 縮小到 11px */
}

/* AdminLTE 特定元件調整 */
.content-wrapper, .content-header {
    font-size: 13px !important;
}

.info-box-text, .info-box-number {
    font-size: 13px !important;
}

.small-box h3 {
    font-size: 19px !important; /* 統計數字稍微大一點保持可讀性 */
}

.small-box p {
    font-size: 13px !important;
}

.small-box-footer {
    font-size: 12px !important;
}

/* 儀表板特定調整 */
.content-header h1 {
    font-size: 19px !important; /* 頁面標題 */
}

.breadcrumb {
    font-size: 12px !important;
}

/* 統計框內的數字保持較大以便閱讀 */
.small-box .inner h3 {
    font-size: 21px !important;
    margin: 0 !important;
}

.small-box .inner p {
    font-size: 13px !important;
}

/* DataTables 表格調整 */
.dataTables_wrapper {
    font-size: 13px !important;
}

.dataTables_info, .dataTables_paginate {
    font-size: 13px !important;
}

/* Select2 下拉選單調整 */
.select2-container .select2-selection {
    font-size: 13px !important;
    min-height: 30px !important;
}

.select2-results {
    font-size: 13px !important;
}

/* 響應式調整 - 在小螢幕上稍微放大一點 */
@media (max-width: 768px) {
    body, html {
        font-size: 15px !important; /* 小螢幕稍微放大到 15px */
    }
    
    .table, .table td, .table th {
        font-size: 15px !important;
    }
    
    .btn {
        font-size: 15px !important;
    }
    
    .form-control, .form-select, input, textarea, select {
        font-size: 15px !important;
    }
}
/* 修正統計卡片圖示大小問題 */
.small-box .icon {
    position: absolute;
    top: auto;
    right: 15px;
    z-index: 0;
    color: rgba(0,0,0,0.15);
}

.small-box .icon i {
    font-size: 70px !important;
    opacity: 0.15;
    display: inline-block !important;
    visibility: visible !important;
}

/* 確保統計卡片中的 FontAwesome 圖示正確顯示 */
.small-box .icon .fas, 
.small-box .icon .far, 
.small-box .icon .fab, 
.small-box .icon .fal,
.small-box .icon .fa {
    font-size: 70px !important;
    display: inline-block !important;
    visibility: visible !important;
}