body {
    background-color: #f5f7fa;
}

.navbar-brand {
    font-weight: 700;
}

.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    border-left: 4px solid #0d6efd;
    padding-left: 0.75rem;
    margin: 1.5rem 0 1rem;
}

.table th {
    white-space: nowrap;
    font-size: 0.875rem;
}

.badge-risk-high {
    background-color: #dc3545;
}

.badge-risk-mid {
    background-color: #fd7e14;
}

.badge-risk-low {
    background-color: #198754;
}

.score-card {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    height: 100%;
}

.score-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.score-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.score-value small {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6c757d;
}

.score-value-sm {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.score-badge {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.score-badge-低 {
    background-color: #198754;
}

.score-badge-中 {
    background-color: #fd7e14;
}

.score-badge-高 {
    background-color: #dc3545;
}

.score-badge-危険 {
    background-color: #842029;
}

.sub-score {
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.sub-score span {
    color: #6c757d;
}

.progress-body {
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.875rem;
    max-height: 320px;
    overflow-y: auto;
}

.delta-badge {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.review-block {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.review-block ul {
    margin-bottom: 0;
}

.member-card {
    border-left: 3px solid #0d6efd;
}

.empty-state {
    color: #6c757d;
    text-align: center;
    padding: 2rem;
}

.gantt-legend {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.gantt-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.gantt-swatch {
    display: inline-block;
    width: 14px;
    height: 10px;
    border-radius: 2px;
}

.gantt-swatch-task {
    background-color: #5b9bd5;
}

.gantt-swatch-milestone {
    background-color: #ed7d31;
}

.gantt-chart {
    overflow-x: auto;
    padding: 0 1rem 1rem;
    min-width: 100%;
}

.gantt-timeline-header,
.gantt-row {
    display: flex;
    min-width: 720px;
    border-bottom: 1px solid #e9ecef;
}

.gantt-timeline-header {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 0.75rem;
    color: #6c757d;
}

.gantt-label-col {
    width: 220px;
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    border-right: 1px solid #e9ecef;
}

.gantt-track-col {
    position: relative;
    flex: 1;
    min-height: 36px;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent calc(100% / 12 - 1px),
        #f1f3f5 calc(100% / 12 - 1px),
        #f1f3f5 calc(100% / 12)
    );
}

.gantt-header-cell {
    font-weight: 600;
}

.gantt-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.gantt-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gantt-item-meta {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gantt-bar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    border-radius: 3px;
    min-width: 4px;
}

.gantt-bar-task {
    background-color: #5b9bd5;
}

.gantt-bar-milestone {
    background-color: #ed7d31;
    height: 12px;
    border-radius: 50%;
    min-width: 12px !important;
    width: 12px !important;
    transform: translate(-50%, -50%);
}

/* 営業用 Lite モード（管理ナビ非表示時の余白調整） */
body.lite-mode {
    background: linear-gradient(180deg, #eef3f9 0%, #f5f7fa 240px);
}

body.lite-mode .navbar-brand small {
    font-size: 0.75rem;
    margin-left: 0.35rem;
}

