/* ===== 営業フラグ機能 CSS ===== */

/* フラグ一覧セクション */
.flags-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.flags-section h3 {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.flags-section h3 i {
    color: var(--color-primary);
    font-size: 1.3rem;
}

/* フラグ追加ボタン */
.btn-add-flag {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add-flag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-add-flag i {
    font-size: 1rem;
}

/* フラグ一覧 */
.flags-list {
    margin-top: 1.5rem;
}

.flag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: var(--color-bg-light);
    border-left: 4px solid;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.flag-item:hover {
    background: var(--color-bg-subtle);
    transform: translateX(4px);
}

/* 優先度別の色 */
.flag-item.priority-high {
    border-left-color: var(--color-danger);
    background: #fff5f5;
}

.flag-item.priority-high:hover {
    background: #fed7d7;
}

.flag-item.priority-medium {
    border-left-color: #ed8936;
    background: #fffaf0;
}

.flag-item.priority-medium:hover {
    background: #feebc8;
}

.flag-item.priority-low {
    border-left-color: var(--color-success);
    background: #f0fff4;
}

.flag-item.priority-low:hover {
    background: #c6f6d5;
}

/* フラグ情報 */
.flag-info {
    flex: 1;
}

.flag-type {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.3rem;
}

.flag-condition {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.2rem;
}

.flag-date {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.flag-notes {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 0.3rem;
    font-style: italic;
}

/* フラグアクション */
.flag-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit-flag,
.btn-delete-flag {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-edit-flag {
    background: #4299e1;
    color: white;
}

.btn-edit-flag:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.btn-delete-flag {
    background: #fc8181;
    color: white;
}

.btn-delete-flag:hover {
    background: #f56565;
    transform: translateY(-2px);
}

/* フラグが0件の場合 */
.no-flags {
    text-align: center;
    padding: 2rem;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.no-flags i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

/* 手動フラグモーダルのカスタマイズ */
.manual-flag-modal .form-group textarea {
    min-height: 100px;
}

.manual-flag-modal .form-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.3rem;
}

/* 優先度選択のカスタマイズ */
.manual-flag-modal select[name="flag_priority"] option {
    padding: 8px;
}

.manual-flag-modal select[name="flag_priority"] option[value="高"] {
    color: var(--color-danger);
    font-weight: 600;
}

.manual-flag-modal select[name="flag_priority"] option[value="中"] {
    color: #ed8936;
    font-weight: 600;
}

.manual-flag-modal select[name="flag_priority"] option[value="低"] {
    color: var(--color-success);
    font-weight: 600;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .flag-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .flag-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
