/* 全画面共通 */
/* フォントの指定 */
body {
    font-family: "メイリオ", "Hiragino Kaku Gothic ProN", "游ゴシック", sans-serif;
}

/* ローディングスピナー */
#loadingSpinner {
    display: none; 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
}
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ブランド表示 */
.login-brand,
.sidebar-brand {
    color: #2A3547;
    text-decoration: none;
}

.login-brand:hover,
.sidebar-brand:hover {
    color: #2A3547;
}

.login-brand-logo {
    display: block;
    width: 152px;
    max-width: 70%;
    height: auto;
}

.login-brand-title {
    margin: 6px 0 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", "メイリオ", sans-serif;
    font-size: 1.35rem;
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: 0;
}

.login-subtitle {
    margin: 0.45rem 0 1.25rem;
    color: #6b7c93;
}

.sidebar-brand {
    gap: 12px;
    min-width: 0;
}

.sidebar-brand-logo {
    display: block;
    width: 112px;
    height: auto;
    max-height: 36px;
    flex: 0 0 auto;
    object-fit: contain;
}

.sidebar-brand-title {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", "メイリオ", sans-serif;
    font-size: 1.18rem;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

/* フッターの画面下部固定 */
html, body {
    height: 100%;
}

.body-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container-fluid {
    flex: 1;
}

.footer {
    flex-shrink: 0;
}


/* ダッシュボード画面 */
/* 統計情報カードのスタイル */
.card .display-4 {
    font-size: 2.5rem;
    font-weight: bold;
}

/* 主要指標カード内の見出し・数値・前期比を均等に配置 */
.card.dashboard-stat-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
    padding: 1.75rem 1.5rem;
}

.dashboard-stat-card .dashboard-stat-heading {
    min-height: 1.5rem;
}

.dashboard-stat-card .dashboard-stat-value {
    margin: 0.75rem 0 0.7rem;
    line-height: 1;
}

.dashboard-stat-card .dashboard-stat-comparison {
    min-height: 1.25rem;
    margin: 0;
}

/* グラフカードの余白調整 */
.card .card-body {
    padding: 1.5rem;
}

/* 応答数ランキンググラフの高さを調整 */
#answerRankingChart {
    max-height: 600px; /* グラフの高さを調整 */
}


/* コールフロー画面 */
/* 未選択のローテーションタイプボタンをグレーアウト */
.rotation-btn {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #ced4da;
    transition: all 0.3s;
    opacity: 0.5; /* 未選択時に薄く表示 */
}
input[type="radio"]:checked + .rotation-btn {
    opacity: 1; /* 選択されたボタンは通常の表示 */
}

.org-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.05em;
    white-space: nowrap;
    cursor: default;
}

/* 設定画面 */
.link-unassigned {
    padding: 6px 8px;
    border-radius: 6px;
    background-color: #fff7e0;
}

.link-item {
    padding: 6px 8px;
    border-radius: 6px;
}

.settings-card .card-body {
    padding: 1.75rem;
}

.btn.rounded-circle {
    width: 34px;
    height: 34px;
}

.password-toggle {
    background-color: #fff;
    color: #495057;
    border-color: #ced4da;
}

.password-toggle:focus,
.password-toggle:active,
.password-toggle:hover {
    background-color: #fff;
    color: #495057;
    border-color: #ced4da;
    box-shadow: none;
}

.password-toggle:focus-visible,
.password-toggle.active,
.password-toggle.btn:active {
    background-color: #fff;
    color: #495057;
    border-color: #ced4da;
    box-shadow: none;
}

.input-group .password-toggle {
    border-radius: 0 0.375rem 0.375rem 0;
    min-width: 44px;
}

.input-group .form-control {
    border-radius: 0.375rem 0 0 0.375rem;
}

.link-item .form-check-label {
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    line-height: 1;
}

.note-text {
    white-space: pre-line;
}


/* コール履歴画面 */
/* カスタム検索バーのスタイル */
.card .card-body .d-flex {
    align-items: center;
}

#customSearch {
    width: 300px;
    margin-left: auto;
}
