/* 補充範本樣式：中文字型、頭像縮寫、表格細節 */
body {
    font-family: "Overpass", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #1b68ff;
    color: #fff;
    font-weight: 600;
}

/* 卡片模式：以名稱第一個字作為頭像 */
.card-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(27, 104, 255, .1);
    color: #1b68ff;
    font-size: 1.5rem;
    font-weight: 600;
}

.table td, .table th {
    vertical-align: middle;
}

.table-nowrap td, .table-nowrap th {
    white-space: nowrap;
}

.form-section-title {
    font-size: .95rem;
    font-weight: 600;
    margin: 1.5rem 0 .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.required::after {
    content: " *";
    color: #dc3545;
}

.secret {
    cursor: pointer;
    letter-spacing: .1em;
}

.copyable {
    cursor: pointer;
    border-bottom: 1px dashed currentColor;
}

/* 側邊選單分組：可收合（Tiny Dashboard） */
/* 側邊欄的 .navbar 是可換行的橫向 flex：分組收合後標題會並排，標題佔滿整列才會上下排列 */
.sidebar-left .menu-section-toggle { cursor: pointer; text-decoration: none; padding-right: 1rem; width: 100%; flex: 0 0 100%; }
.sidebar-left .menu-section-toggle:hover { color: var(--primary, #1b68ff) !important; }
.sidebar-left .menu-caret { transition: transform .2s; }
.sidebar-left .menu-section-toggle.collapsed .menu-caret { transform: rotate(-90deg); }
.menu-section-toggle[aria-expanded="true"] .menu-section-badge { display: none; }
/* 側邊欄縮成圖示列時看不到分組標題，分組一律展開 */
@media (min-width: 992px) {
    .vertical.collapsed:not(.hover) .sidebar-left .collapse[data-menu-section],
    .vertical.narrow:not(.open) .sidebar-left .collapse[data-menu-section] { display: block; }
    /* 分組標題有 d-flex（!important），會蓋過主題收合時的隱藏，文字、數字、箭頭擠成一列；收合時改以分隔線區隔，每項維持上下排列 */
    .vertical.collapsed:not(.hover) .sidebar-left .menu-section-toggle,
    .vertical.narrow:not(.open) .sidebar-left .menu-section-toggle { display: none !important; }
    .vertical.collapsed:not(.hover) .sidebar-left [data-menu-section],
    .vertical.narrow:not(.open) .sidebar-left [data-menu-section] { border-top: 1px solid rgba(0, 0, 0, .08); margin-top: .5rem; padding-top: .5rem; }
    .vertical.collapsed:not(.hover) .sidebar-left .nav-link,
    .vertical.narrow:not(.open) .sidebar-left .nav-link { display: flex; justify-content: center; }
}